Hash a string using the OpenBSD bcrypt scheme and a salt generated by GenerateSalt.
Namespace: BCrypt.Net
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.9.16.1 (3.9.16.1)
Syntax
C#
public static string HashString( string source, int workFactor )
Parameters
- source
- Type: SystemString
The string to hash. - 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: StringThe hashed string.
Remarks
See Also