View Source Boruta.VerifiableCredentials.Hotp (Boruta core v3.0.0-beta.1)

Implements HOTP generation as described in the IETF RFC HOTP: An HMAC-Based One-Time Password Algorithm

This implementation defaults to 6 digits using the sha1 algorithm as hashing function

Summary

Functions

Link to this function

generate_hotp(secret, counter)

View Source
@spec generate_hotp(secret :: String.t(), counter :: integer()) :: hotp :: String.t()