C# Класс knownpasswords.ApiHelper

Some helper methods.
Показать файл Открыть проект

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

Метод Описание
ConvertPasswordToBlake2b ( byte password ) : string

Convert a cleartext password to a Blake2b hex string.

ConvertPasswordToBlake2b ( string password ) : string

Convert a cleartext password to a Blake2b hex string.

ConvertPasswordToSha512 ( byte password ) : string

Convert a cleartext password to a Sha512 hex string.

ConvertPasswordToSha512 ( string password ) : string

Convert a cleartext password to a Sha512 hex string.

GenerateApiKeyPair ( ) : AuthenticationPair

Helper method to generate a new API key pair.

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

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

Convert a cleartext password to a Blake2b hex string.
public static ConvertPasswordToBlake2b ( byte password ) : string
password byte
Результат string

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

Convert a cleartext password to a Blake2b hex string.
public static ConvertPasswordToBlake2b ( string password ) : string
password string
Результат string

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

Convert a cleartext password to a Sha512 hex string.
public static ConvertPasswordToSha512 ( byte password ) : string
password byte
Результат string

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

Convert a cleartext password to a Sha512 hex string.
public static ConvertPasswordToSha512 ( string password ) : string
password string
Результат string

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

Helper method to generate a new API key pair.
public static GenerateApiKeyPair ( ) : AuthenticationPair
Результат knownpasswords.Models.AuthenticationPair