Skip to main content
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Cloud
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Pricing
Starts free and scales with your needs
Docs
Manual
API Reference
Deno Deploy
Deno KV
Deno by Example
Modules
Current path
deno.land/x
Standard Library
Node.js & npm
JSR
Blog
Search…
⌘K
Module
x
/
bwt
/
keygen.ts
Better Web Token - an iteration of web tokens with a bunch of improvements
chiefbiiko/bwt
Version
Latest
v0.6.0
v0.5.0
v0.4.1
v0.4.0
v0.3.0
v0.2.0
v0.1.0
Menu
mod.ts
(default module)
I
Body
I
Contents
I
Header
I
KeyPair
I
Parse
I
PeerPublicKey
I
Stringify
v
KID_BYTES
v
MAX_TOKEN_CHARS
v
PUBLIC_KEY_BYTES
v
SECRET_KEY_BYTES
v
SUPPORTED_VERSIONS
f
createParse
f
createStringify
f
generateKeyPair
E
Typ
deps.ts
c
Curve25519
v
HCHACHA20_NONCE_BYTES
v
HCHACHA20_OUTPUT_BYTES
v
XCHACHA20_CIPHERTEXT_BYTES_MAX
v
XCHACHA20_POLY1305_AAD_BYTES_MAX
v
XCHACHA20_POLY1305_NONCE_BYTES
v
XCHACHA20_POLY1305_PLAINTEXT_BYTES_MAX
f
decode
f
encode
f
hchacha20
f
open
f
seal
keygen.ts
This module does not provide any exports.