Crypto.GenerateSalt(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a cryptographically strong sequence of random byte values.
public static string GenerateSalt (int byteLength = 16);
static member GenerateSalt : int -> string
Public Shared Function GenerateSalt (Optional byteLength As Integer = 16) As String
Parameters
- byteLength
- Int32
The number of cryptographically random bytes to generate.
Returns
The generated salt value as a base-64-encoded string.