BlowfishCipher.BCrypt Method (Byte[], Byte[], Int32)

CryptSharp

BlowfishCipherBCrypt Method (Byte, Byte, Int32) CryptSharp
Uses the given key, salt, and cost to generate a BCrypt hash.

Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax

public static byte[] BCrypt(
	byte[] key,
	byte[] salt,
	int cost
)
Public Shared Function BCrypt ( 
	key As Byte(),
	salt As Byte(),
	cost As Integer
) As Byte()
public:
static array<unsigned char>^ BCrypt(
	array<unsigned char>^ key, 
	array<unsigned char>^ salt, 
	int cost
)
static member BCrypt : 
        key : byte[] * 
        salt : byte[] * 
        cost : int -> byte[] 

Parameters

key
Type: SystemByte
The key. This must be between 1 and 72 bytes. Unlike BlowfishCrypter, this method does NOT automatically add a null byte to the key.
salt
Type: SystemByte
The salt. This must be 16 bytes.
cost
Type: SystemInt32
The expansion cost. This is a value between 4 and 31, specifying the logarithm of the number of iterations.

Return Value

Type: Byte
A BCrypt hash.
See Also

Reference