C# Class KeeTrayTOTP.Libraries.TOTPProvider

Provides Time-based One Time Passwords RFC 6238.
Show file Open project: victor-rds/KeeTrayTOTP Class Usage Examples

Public Methods

Method Description
Generate ( byte key ) : byte[]

Generate a TOTP using provided binary data.

Generate ( string key ) : string

Generate a TOTP using provided binary data.

GenerateByByte ( byte key ) : string

Generate a TOTP using provided binary data.

TOTPProvider ( string Settings, TimeCorrectionCollection &tcc ) : System

Instanciates a new TOTP_Generator.

Private Methods

Method Description
GetBytes ( ulong n ) : byte[]

Converts an unsigned integer to binary data.

Method Details

Generate() public method

Generate a TOTP using provided binary data.
public Generate ( byte key ) : byte[]
key byte Binary data.
return byte[]

Generate() public method

Generate a TOTP using provided binary data.
public Generate ( string key ) : string
key string Key in String Format.
return string

GenerateByByte() public method

Generate a TOTP using provided binary data.
public GenerateByByte ( byte key ) : string
key byte Binary data.
return string

TOTPProvider() public method

Instanciates a new TOTP_Generator.
public TOTPProvider ( string Settings, TimeCorrectionCollection &tcc ) : System
Settings string
tcc TimeCorrectionCollection
return System