e-CryptIt Engine Xojo Plugin |

# Einhugur_2FA_TOTP Class (console safe)

Class for 2FA TOTP two factor authentication.
The class can be in role of the client side or server side of the two factor authentication.

Object
Einhugur_2FA_TOTP

class Einhugur_2FA_TOTP

#### Constructors

Einhugur_2FA_TOTP (console safe) | Private constructor. It is not possible to construct instance of this class, the class only has shared methods.

#### Methods

shared GenerateQRCodeContent | Generates content for QRCode from given secret key. This variation will generate the standard most compatible setup.
shared GenerateQRCodeContent | Generates content for QRCode from given secret key. This variation will generate non standard customise setup.
shared GenerateSecret | Generates secret key for two factor authentication.
shared GenerateValue | Generates 6 digit value from given secret key and current time and also returns how many seconds are remaining of the 30 second window. This variation generates value for standard implementation.
shared GenerateValue | Generates 6 or 8 digit value from given secret key and current time and also returns how many seconds are remaining of the 30 second window. This variation generates value for customised implementation where you can choose algorithm, digits and time.
shared Validate | Validates value against given secret key and current time. This variation validates value for standard implementation.
shared Validate | Validates value against given secret key and current time. This variation validates value for non standard standard implementation where you can choose algorithm, digits and seconds.

#### Enumerations

SecretKeySizes | Enum that has Key size constants for
Algorithms | Algorithm enum to use for making advanced setup for two factor authentication.
Digits | Digits enum to use for making advanced setup for two factor authentication.

#### Constants

Version = 16.63 |

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS