Apq.Cfg.Crypto.CfgBuilderExtensions.AddAesGcmEncryptionFromEnv(thisApq.Cfg.CfgBuilder,string,System.Action_Apq.Cfg.Crypto.EncryptionOptions_).md 1.7 KB

Apq.Cfg.Crypto

Apq.Cfg.Crypto.CfgBuilderExtensions

CfgBuilderExtensions.AddAesGcmEncryptionFromEnv(this CfgBuilder, string, Action<EncryptionOptions>) Method

添加 AES-GCM 加密支持(从环境变量读取密钥)

public static Apq.Cfg.CfgBuilder AddAesGcmEncryptionFromEnv(this Apq.Cfg.CfgBuilder builder, string envVarName="APQ_CFG_ENCRYPTION_KEY", System.Action<Apq.Cfg.Crypto.EncryptionOptions>? configure=null);

Parameters

builder Apq.Cfg.CfgBuilder

envVarName System.String

configure System.Action<EncryptionOptions>

Returns

Apq.Cfg.CfgBuilder