C# Class OathNet.Key

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

Méthodes publiques

Méthode 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 méthode

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

Key() public méthode

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

Key() public méthode

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.
Résultat System

Key() public méthode

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.
Résultat System