C# Класс modauthtkt.HashHelper

Показать файл Открыть проект

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

Метод Описание
Hash ( string text, HashAlgorithm hasher, Encoding encoder = null ) : string

Creates a hash string using the specified hash methodology.

Default encoding is ISO-8859-1

Hash ( string text, HashType hashType, Encoding encoder = null ) : string

Creates a hash string using the specified hash methodology.

Default encoding is ISO-8859-1

Приватные методы

Метод Описание
BytesToString ( IEnumerable bytes ) : string

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

Hash() публичный статический Метод

Creates a hash string using the specified hash methodology.
Default encoding is ISO-8859-1
public static Hash ( string text, HashAlgorithm hasher, Encoding encoder = null ) : string
text string String to be hashed
hasher System.Security.Cryptography.HashAlgorithm Hash algorithm with which to perform the hash
encoder System.Text.Encoding (Optional) Character encoding for converting the text string to bytes
Результат string

Hash() публичный статический Метод

Creates a hash string using the specified hash methodology.
Default encoding is ISO-8859-1
public static Hash ( string text, HashType hashType, Encoding encoder = null ) : string
text string String to be hashed
hashType HashType Type of hashing to perform
encoder System.Text.Encoding (Optional) Character encoding for converting the text string to bytes
Результат string