Generate Salt(Int32) Method
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
The number of cryptographically random bytes to generate.
The generated salt value as a base-64-encoded string.