C# Class knownpasswords.ApiHelper

Some helper methods.
ファイルを表示 Open project: bitbeans/knownpasswords-net

Public Methods

Method Description
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.

Method Details

ConvertPasswordToBlake2b() public static method

Convert a cleartext password to a Blake2b hex string.
public static ConvertPasswordToBlake2b ( byte password ) : string
password byte
return string

ConvertPasswordToBlake2b() public static method

Convert a cleartext password to a Blake2b hex string.
public static ConvertPasswordToBlake2b ( string password ) : string
password string
return string

ConvertPasswordToSha512() public static method

Convert a cleartext password to a Sha512 hex string.
public static ConvertPasswordToSha512 ( byte password ) : string
password byte
return string

ConvertPasswordToSha512() public static method

Convert a cleartext password to a Sha512 hex string.
public static ConvertPasswordToSha512 ( string password ) : string
password string
return string

GenerateApiKeyPair() public static method

Helper method to generate a new API key pair.
public static GenerateApiKeyPair ( ) : AuthenticationPair
return knownpasswords.Models.AuthenticationPair