BlowfishCipher BCrypt Method ( Byte ,  Byte , Int32, EksBlowfishKeyExpansionFlags)CryptSharp
Uses the given key, salt, and cost to generate a BCrypt hash. Flags may modify the key expansion.

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

public static byte[] BCrypt(
	byte[] key,
	byte[] salt,
	int cost,
	EksBlowfishKeyExpansionFlags flags
)

Parameters

key
Type:  OnlineSystem Byte 
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:  OnlineSystem Byte 
The salt. This must be 16 bytes.
cost
Type: OnlineSystem Int32
The expansion cost. This is a value between 4 and 31, specifying the logarithm of the number of iterations.
flags
Type: CryptSharp.Utility EksBlowfishKeyExpansionFlags
Flags modifying the key expansion.

Return Value

A BCrypt hash.
See Also