e-CryptIt Engine Xojo Plugin

Einhugur_2FA_TOTP Class

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_TOTPPrivate constructor. It is not possible to construct instance of this class, the class only has shared methods.

Methods

shared GenerateQRCodeContentGenerates content for QRCode from given secret key. This variation will generate the standard most compatible setup.
shared GenerateQRCodeContentGenerates content for QRCode from given secret key. This variation will generate non standard customise setup.
shared GenerateSecretGenerates secret key for two factor authentication.
shared GenerateValueGenerates 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 GenerateValueGenerates 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 ValidateValidates value against given secret key and current time. This variation validates value for standard implementation.
shared ValidateValidates 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

SecretKeySizesEnum that has Key size constants for
AlgorithmsAlgorithm enum to use for making advanced setup for two factor authentication.
DigitsDigits enum to use for making advanced setup for two factor authentication.

Constants

Version = 16.12

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