AESEncoderEncryptGCM(String, String, String) Method
使用AES-GCM模式加密指定文字 (使用設定檔中的Key和Nonce)
Namespace: eBizprise.Framework.EncodeHelperAssembly: eBizprise.Framework.Core (in eBizprise.Framework.Core.dll) Version: 26.0.0.0+6e92afb880fa099fdfe407c9aa8d1b17eaaf3625
public static string EncryptGCM(
string plainText,
string nonce,
string associatedData = null
)
- plainText String
- 欲加密文字
- nonce String
- Nonce (建議96 bits / 12 bytes)
- associatedData String (Optional)
- 附加驗證資料 (AAD),可為null
StringBase64編碼的加密結果 (格式: Nonce|Tag|CipherText)
| Date | Version | Description |
|---|
| 2026/01/07 | 26.0.0.0 | 彙整2026年度初版,新增GCM支援 |