C# Класс Crypto.OpenSslCompatDeriveBytes

Derives a key from a password using an OpenSSL-compatible version of the PBKDF1 algorithm.
based on the OpenSSL EVP_BytesToKey method for generating key and iv http://www.openssl.org/docs/crypto/EVP_BytesToKey.html
Наследование: System.Security.Cryptography.DeriveBytes
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetBytes ( int cb ) : byte[]

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

OpenSslCompatDeriveBytes ( byte password, byte salt, string hashName, int iterations ) : System

Initializes a new instance of the Crypto.OpenSslCompatDeriveBytes class specifying the password, key salt, hash name, and iterations to use to derive the key.

OpenSslCompatDeriveBytes ( string password, byte salt, string hashName, int iterations ) : System

Initializes a new instance of the Crypto.OpenSslCompatDeriveBytes class specifying the password, key salt, hash name, and iterations to use to derive the key.

Reset ( ) : void

Resets the state of the operation.

Описание методов

GetBytes() публичный Метод

Returns a pseudo-random key from a password, salt and iteration count.
public GetBytes ( int cb ) : byte[]
cb int The number of pseudo-random key bytes to generate.
Результат byte[]

OpenSslCompatDeriveBytes() публичный Метод

Initializes a new instance of the Crypto.OpenSslCompatDeriveBytes class specifying the password, key salt, hash name, and iterations to use to derive the key.
public OpenSslCompatDeriveBytes ( byte password, byte salt, string hashName, int iterations ) : System
password byte The password for which to derive the key.
salt byte The key salt to use to derive the key.
hashName string The name of the hash algorithm for the operation. (e.g. MD5 or SHA1)
iterations int The number of iterations for the operation.
Результат System

OpenSslCompatDeriveBytes() публичный Метод

Initializes a new instance of the Crypto.OpenSslCompatDeriveBytes class specifying the password, key salt, hash name, and iterations to use to derive the key.
public OpenSslCompatDeriveBytes ( string password, byte salt, string hashName, int iterations ) : System
password string The password for which to derive the key.
salt byte The key salt to use to derive the key.
hashName string The name of the hash algorithm for the operation. (e.g. MD5 or SHA1)
iterations int The number of iterations for the operation.
Результат System

Reset() публичный Метод

Resets the state of the operation.
public Reset ( ) : void
Результат void