C# Class Gw2Launcher.Tools.Totp

Show file Open project: Healix/Gw2Launcher

Public Methods

Method Description
Decode ( string key ) : byte[]
Encode ( Array key ) : string
Generate ( Array key ) : char[]
Generate ( Array key, long ticks ) : char[]
GetRemainingTicks ( ) : int
GetRemainingTicks ( long ticks ) : int
IsValid ( string key ) : bool

Private Methods

Method Description
GetCode ( Array key, long epoch, byte length ) : char[]

Method Details

Decode() public static method

public static Decode ( string key ) : byte[]
key string
return byte[]

Encode() public static method

public static Encode ( Array key ) : string
key Array
return string

Generate() public static method

public static Generate ( Array key ) : char[]
key Array
return char[]

Generate() public static method

public static Generate ( Array key, long ticks ) : char[]
key Array
ticks long
return char[]

GetRemainingTicks() public static method

public static GetRemainingTicks ( ) : int
return int

GetRemainingTicks() public static method

public static GetRemainingTicks ( long ticks ) : int
ticks long
return int

IsValid() public static method

public static IsValid ( string key ) : bool
key string
return bool