Export (0) Print
Expand All

PasswordDeriveBytes.Salt Property

Gets or sets the key salt value for the operation.

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)

'Declaration
Public Property Salt As Byte()
'Usage
Dim instance As PasswordDeriveBytes
Dim value As Byte()

value = instance.Salt

instance.Salt = value
/** @property */
public byte[] get_Salt ()

/** @property */
public void set_Salt (byte[] value)

public function get Salt () : byte[]

public function set Salt (value : byte[])

Not applicable.

Property Value

The key salt value for the operation.

Exception typeCondition

CryptographicException

The key salt value is fixed and an attempt is made to change this value.

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft