#### [Apq\.Cfg\.Crypto](index.md 'index') ### [Apq\.Cfg\.Crypto](Apq.Cfg.Crypto.md 'Apq\.Cfg\.Crypto').[CfgBuilderExtensions](Apq.Cfg.Crypto.CfgBuilderExtensions.md 'Apq\.Cfg\.Crypto\.CfgBuilderExtensions') ## CfgBuilderExtensions\.AddRsaEncryption\(this CfgBuilder, string, Action\\) Method 添加 RSA 加密支持(从 PEM 文件) ```csharp public static Apq.Cfg.CfgBuilder AddRsaEncryption(this Apq.Cfg.CfgBuilder builder, string pemFilePath, System.Action? configure=null); ``` #### Parameters `builder` [Apq\.Cfg\.CfgBuilder](https://learn.microsoft.com/en-us/dotnet/api/apq.cfg.cfgbuilder 'Apq\.Cfg\.CfgBuilder') `pemFilePath` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') `configure` [System\.Action<](https://learn.microsoft.com/en-us/dotnet/api/system.action-1 'System\.Action\`1')[EncryptionOptions](Apq.Cfg.Crypto.EncryptionOptions.md 'Apq\.Cfg\.Crypto\.EncryptionOptions')[>](https://learn.microsoft.com/en-us/dotnet/api/system.action-1 'System\.Action\`1') #### Returns [Apq\.Cfg\.CfgBuilder](https://learn.microsoft.com/en-us/dotnet/api/apq.cfg.cfgbuilder 'Apq\.Cfg\.CfgBuilder')