語言

Rfc2898DeriveBytes.Salt 屬性

定義

取得或設定操作的鍵鹽值。

public:
 property cli::array <System::Byte> ^ Salt { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public byte[] Salt { get; set; }
member this.Salt : byte[] with get, set
Public Property Salt As Byte()

屬性值

Byte[]

操作的鍵鹽值。

例外狀況

指定的鹽大小小於 8 位元組。

鹽是 null。

備註

鹽是一組隨機的位元組,用來讓訊息的未經授權解密變得更困難。 字典攻擊是一種攻擊,攻擊者嘗試透過比較加密後的訊息與先前計算出的最可能金鑰的加密值來解密。 這種攻擊因為在密碼導出前加入了鹽(隨機位元組)而變得更加困難。

適用於

另請參閱