C# Class Library.Security.Pbkdf2

ファイルを表示 Open project: Alliance-Network/Library Class Usage Examples

Private Properties

Property Type Description
Function byte[]

Public Methods

Method Description
GetBytes ( int count ) : byte[]

Returns a pseudo-random key from a password, salt and iteration count.

Pbkdf2 ( HMAC algorithm, byte password, byte salt, int iterations ) : System

Creates new instance.

Private Methods

Method Description
Function ( ) : byte[]

Method Details

GetBytes() public method

Returns a pseudo-random key from a password, salt and iteration count.
public GetBytes ( int count ) : byte[]
count int Number of bytes to return.
return byte[]

Pbkdf2() public method

Creates new instance.
Algorithm cannot be null - Password cannot be null. -or- Salt cannot be null.
public Pbkdf2 ( HMAC algorithm, byte password, byte salt, int iterations ) : System
algorithm System.Security.Cryptography.HMAC HMAC algorithm to use.
password byte The password used to derive the key.
salt byte The key salt used to derive the key.
iterations int The number of iterations for the operation.
return System