Skip to main content
Deno 2 is finally here 🎉️
Learn more
->
Dismiss
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Modules
Standard Library
JSR
Node.js & npm
Current path
deno.land/x
Community
Discord
GitHub
X
YouTube
Mastodon
Blog
Module
x
/
dotp
/
src
/
otp.ts
Deno One-Time Password
libewd/dotp
Version
v0.0.2
v0.0.1
Go to Latest
Menu
buffer.ts
c
Buffer
deps.ts
docs.ts
encoding.ts
f
decode
f
encode
error.ts
c
OTPError
c
OTPSecretKeyError
hash.ts
f
createHashToken
moving_factor.ts
f
createMovingFactorFromBigInt
f
createMovingFactorFromNumber
options.ts
T
Options
f
createDefaultOptions
f
createOptions
otp.ts
c
OTP
secret_key.ts
f
createRandomSecretKey
f
createSecretKey
f
createSecretKeyFromString
f
exportSecretKey
totp.ts
f
createTimeToken
import
*
as
dotp
from
"https://deno.land/x/dotp@v0.0.1/src/otp.ts"
;
Classes
c
OTP