AESEncoderEncryptGCM(String, String, String, String) Method

使用AES-GCM模式加密指定文字

Definition

Namespace: eBizprise.Framework.EncodeHelper
Assembly: eBizprise.Framework.Core (in eBizprise.Framework.Core.dll) Version: 26.0.0.0+6e92afb880fa099fdfe407c9aa8d1b17eaaf3625
C#
public static AESEncoderAesGcmResult EncryptGCM(
	string key,
	string nonce,
	string plainText,
	string associatedData = null
)

Parameters

key  String
加密金鑰
nonce  String
Nonce (建議96 bits / 12 bytes)
plainText  String
欲加密文字
associatedData  String  (Optional)
附加驗證資料 (AAD),可為null

Return Value

AESEncoderAesGcmResult
包含密文和Tag的結果物件

Revision History

DateVersionDescription
2026/01/0726.0.0.0彙整2026年度初版,新增GCM支援

See Also