C# Класс OathNet.Key

Represents a secret key used for the one-time password generation.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Key() публичный Метод

Initializes a new instance of the Key class and generates a random 20-byte key.
public Key ( ) : System
Результат System

Key() публичный Метод

Initializes a new instance of the Key class.
public Key ( byte keyData ) : System
keyData byte The key to initialize.
Результат System

Key() публичный Метод

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.
Результат System

Key() публичный Метод

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.
Результат System