CrypterGenerateSalt Method (Int32) | CryptSharp |
Generates a salt string using the specified number of rounds.
The purpose of salt is to make dictionary attacks against a whole password database much harder,
by causing the crypted password to be different even if two users have the same uncrypted password.
Namespace: CryptSharp
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax
public string GenerateSalt( int rounds )
Public Function GenerateSalt ( rounds As Integer ) As String
public: String^ GenerateSalt( int rounds )
member GenerateSalt : rounds : int -> string
Parameters
- rounds
- Type: SystemInt32
Return Value
Type: StringThe salt string.
See Also