C# Class PassFruit.Security.Cryptography.Pbkdf2

RFC2898 Implements password-based key derivation function 2, PBKDF2, by using pseudo-random number generator based on HMACSHA1, hash-based (SHA-1) message authentication code
Show file Open project: bettiolo/PassFruit Class Usage Examples

Public Methods

Method Description
Compute ( byte password, byte salt, int iterations ) : byte[]
Compute ( string password, byte salt, int iterations ) : byte[]
GenerateSalt ( ) : byte[]
Pbkdf2 ( RandomNumberGenerator randomNumberGenerator ) : System

Protected Methods

Method Description
PlatformSpecificCompute ( byte password, byte salt, int iterations ) : byte[]

Method Details

Compute() public method

public Compute ( byte password, byte salt, int iterations ) : byte[]
password byte
salt byte
iterations int
return byte[]

Compute() public method

public Compute ( string password, byte salt, int iterations ) : byte[]
password string
salt byte
iterations int
return byte[]

GenerateSalt() public method

public GenerateSalt ( ) : byte[]
return byte[]

Pbkdf2() public method

public Pbkdf2 ( RandomNumberGenerator randomNumberGenerator ) : System
randomNumberGenerator RandomNumberGenerator
return System

PlatformSpecificCompute() protected abstract method

protected abstract PlatformSpecificCompute ( byte password, byte salt, int iterations ) : byte[]
password byte
salt byte
iterations int
return byte[]