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
/
buffer.ts
Deno One-Time Password
libewd/dotp
Version
Latest
v0.0.2
v0.0.1
Menu
examples
mod.ts
(default module)
c
OTP
c
OTPError
c
OTPSecretKeyError
f
createHashBasedToken
f
createMovingFactorFromBigInt
f
createMovingFactorFromNumber
f
createRandomCryptoKey
f
createTimeBasedToken
buffer.ts
c
Buffer
crypto.ts
T
KeyHashAlgorithm
f
createCryptoKey
f
createCryptoKeyFromString
f
createRandomCryptoKey
f
exportCryptoKey
deps.ts
encoding.ts
f
decode
f
encode
error.ts
c
OTPError
c
OTPSecretKeyError
hash_based.ts
f
createHashBasedToken
key.ts
c
default
moving_factor.ts
f
createMovingFactorFromBigInt
f
createMovingFactorFromNumber
otp.ts
c
OTP
T
OTPOptions
T
OTPType
f
createDefaultOptions
f
createOptions
time_based.ts
f
createTimeBasedToken
token.ts
c
default
uri.ts
T
URIOptions
f
createOneTimePasswordURI
import
*
as
dotp
from
"https://deno.land/x/dotp@v0.0.2/buffer.ts"
;
Classes
c
Buffer