Skip to main content

Built and signed on GitHub Actions

Produces secure keys and passwords. Supports SSH, PGP, BLS, OTP, and many others.

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
2 days ago (0.7.3)
v
_TEST
No documentation available
f
createDerivedEIP2334Keystores

Exports multiple keystore from derived seed

f
decryptEIP2335Keystore

Decrypts EIP2335 Keystore NOTE: it validates publicKey if present (which mean you can use it from store if decryption is success)

f
deriveChild
No documentation available
f
deriveEIP2334Key
No documentation available
f
deriveEIP2334SigningKey

Derives signing key from withdrawal key without access to seed

f
deriveMaster
No documentation available
f
deriveSeedTree
No documentation available
v
EIP2334_KEY_TYPES
No documentation available
T
EIP2334KeyType
No documentation available
c
EIP2335Keystore

Class for generation multiple keystores with same password

f
hkdfModR

Low-level primitive from EIP2333, generates key from bytes. KeyGen from https://www.ietf.org/archive/id/draft-irtf-cfrg-bls-signature-05.html#name-keygen

T
RandFn

Secure PRNG function like 'randomBytes' from '@noble/hashes/utils'

f
default
No documentation available
f
formatPublicKey
No documentation available
f
getKeys
No documentation available
f
parseAddress
No documentation available
f
buildURL
No documentation available
f
hotp
No documentation available
T
OTPOpts
No documentation available
f
parse
No documentation available
f
totp
No documentation available
v
alphabet
No documentation available
f
and
No documentation available
f
cardinalityBits
No documentation available
f
checkPassword

Check if password is correct for rules in design rationale.

v
DATE
No documentation available
f
formatDuration
No documentation available
f
mask
No documentation available
T
MaskType
No documentation available
f
or
No documentation available
T
PassEstimate
No documentation available
f
product
No documentation available
v
secureMask
No documentation available
f
zip
No documentation available
T
Bytes
No documentation available
f
decodeSecretKey
No documentation available
f
default

Derives PGP private key, public key and fingerprint. Uses S2K KDF, which means it's slow. Use getKeyId if you want to get key id in a fast way. PGP key depends on its date of creation. NOTE: gpg: warning: lower 3 bits of the secret key are not cleared happens even for keys generated with GnuPG 2.3.6, because check looks at item as Opaque MPI, when it is just MPI: https://dev.gnupg.org/rGdbfb7f809b89cfe05bdacafdb91a2d485b9fe2e0

f
formatPrivate
No documentation available
f
formatPublic
No documentation available
f
getKeyId

Derives PGP key ID from the private key. PGP key depends on its date of creation.

f
getKeys

Derives PGP private key, public key and fingerprint. Uses S2K KDF, which means it's slow. Use getKeyId if you want to get key id in a fast way. PGP key depends on its date of creation. NOTE: gpg: warning: lower 3 bits of the secret key are not cleared happens even for keys generated with GnuPG 2.3.6, because check looks at item as Opaque MPI, when it is just MPI: https://dev.gnupg.org/rGdbfb7f809b89cfe05bdacafdb91a2d485b9fe2e0

v
mpi
No documentation available
v
oid
No documentation available
v
opaquempi
No documentation available
v
PacketLen
No documentation available
v
privArmor
No documentation available
v
pubArmor
No documentation available
v
PubKeyPacket
No documentation available
T
PubKeyPacketAlgo
No documentation available
v
Stream
No documentation available
v
AuthData
No documentation available
T
AuthDataType
No documentation available
f
authSign
No documentation available
f
default
No documentation available
f
formatPublicKey
No documentation available
f
getFingerprint
No documentation available
f
getKeys
No documentation available
v
PrivateExport
No documentation available
v
PublicKey
No documentation available
v
SSHBuf
No documentation available
v
SSHKeyType
No documentation available
v
SSHString
No documentation available
f
default
No documentation available
f
formatPublicKey
No documentation available
f
getKeys
No documentation available
f
parseAddress
No documentation available
f
base64armor

Base64-armored values are commonly used in cryptographic applications, such as PGP and SSH.