This documentation is archived and is not being maintained.

PasswordDeriveBytes.Salt Property

Gets or sets the key salt value for the operation.

[Visual Basic]
Public Property Salt As Byte ()
[C#]
public byte[] Salt {get; set;}
[C++]
public: __property unsigned char get_Salt();
public: __property void set_Salt(unsigned char __gc[]);
[JScript]
public function get Salt() : Byte[];
public function set Salt(Byte[]);

Property Value

The key salt value for the operation.

Exceptions

Exception Type Condition
CryptographicException The key salt value is fixed and an attempt is made to change this value.

Remarks

A dictionary attack is an attack in which the attacker attempts to decrypt an encrypted message by comparing the encrypted value with previously computed encrypted values for the most likely keys. This attack is made much more difficult by the introduction of random bytes at the end of the password before the key derivation. These random bytes are known as salt.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

PasswordDeriveBytes Class | PasswordDeriveBytes Members | System.Security.Cryptography Namespace | Cryptographic Services

Show: