Generate a salt for use with the HashPassword(String, String) method.
Namespace: BCrypt.Net
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.9.16.1 (3.9.16.1)
Syntax
C#
public static string GenerateSalt( int workFactor )
Parameters
- workFactor
- Type: SystemInt32
The log2 of the number of rounds of hashing to apply - the work factor therefore increases as 2**workFactor.
Return Value
Type: StringA base64 encoded salt value.
See Also