class ROTP::OTP
def initialize(s, options = {})
(**options)
-
provisioning_params
(Hash
) -- -
issuer
(String
) -- -
name
(String
) -- -
digest
(String
) -- -
digits
(Integer
) --
Parameters:
-
secret
(String
) -- in the form of base32
def initialize(s, options = {}) @digits = options[:digits] || DEFAULT_DIGITS @digest = options[:digest] || 'sha1' @name = options[:name] @issuer = options[:issuer] @provisioning_params = options[:provisioning_params] || {} @secret = s end