Hash and OTP generation using encrypted values
Using FHE we perform operations on the encrypted secret key, timestamp, and dapp ID to generate an encrypted TOTP code.This Time based One Time Password can be verified on-chain without accessing the
Current Industry Standards for TOTP
hash-based message authentication code (HMAC) based one-time password
## Required for OTP generation
1. A cryptographic hash method H (default is SHA-1)
2. A secret key K, which is an arbitrary byte string and must remain private,
and thats why stored encrypted on the Smart contract
3. A counter C, which counts the number of iterations
4. A HOTP value length d (6–10, default is 6, and 6–8 is recommended)Current Approach
Last updated