C# Class OathNet.Key

Represents a secret key used for the one-time password generation.
Mostrar archivo Open project: jennings/OATH.Net Class Usage Examples

Public Methods

Method Description
Key ( ) : System

Initializes a new instance of the Key class and generates a random 20-byte key.

Key ( byte keyData ) : System

Initializes a new instance of the Key class.

Key ( int keyLength ) : System

Initializes a new instance of the Key class and generates a random key with the specified seed.

Key ( string base32key ) : System

Initializes a new instance of the Key class.

Method Details

Key() public method

Initializes a new instance of the Key class and generates a random 20-byte key.
public Key ( ) : System
return System

Key() public method

Initializes a new instance of the Key class.
public Key ( byte keyData ) : System
keyData byte The key to initialize.
return System

Key() public method

Initializes a new instance of the Key class and generates a random key with the specified seed.
public Key ( int keyLength ) : System
keyLength int Length in bytes of the generated key.
return System

Key() public method

Initializes a new instance of the Key class.
base32key is not a valid base32-encoded string.
public Key ( string base32key ) : System
base32key string The key to initialize.
return System