Class ROTP::HOTP
In: lib/rotp/hotp.rb
Parent: OTP

Methods

at   provisioning_uri   verify  

Public Instance methods

Generates the OTP for the given count @param [Integer] count counter @returns [Integer] OTP

Returns the provisioning URI for the OTP This can then be encoded in a QR Code and used to provision the Google Authenticator app @param [String] name of the account @param [Integer] initial_count starting counter value, defaults to 0 @return [String] provisioning uri

Verifies the OTP passed in against the current time OTP @param otp [String/Integer] the OTP to check against @param counter [Integer] the counter of the OTP @param retries [Integer] number of counters to incrementally retry

[Validate]