Functions
createRNG
- createRNG(password: crypto.BinaryLike, realm: crypto.BinaryLike, seed?: string | Buffer): Promise<crypto.Cipher>
-
Parameters
-
password: crypto.BinaryLike
-
realm: crypto.BinaryLike
-
Optional seed: string | Buffer
Returns Promise<crypto.Cipher>
CSPRNG stream
gcmDecrypt
- gcmDecrypt(password: crypto.BinaryLike, data: string | Buffer): Promise<Buffer>
-
Parameters
-
password: crypto.BinaryLike
-
data: string | Buffer
Returns Promise<Buffer>
salt + plaintext + tag
gcmEncrypt
- gcmEncrypt(password: crypto.BinaryLike, data: crypto.BinaryLike): Promise<Buffer>
-
Parameters
-
password: crypto.BinaryLike
-
data: crypto.BinaryLike
Returns Promise<Buffer>
salt + ciphertext + tag
genPass
- genPass(password: crypto.BinaryLike, realm: crypto.BinaryLike, seed?: string | Buffer, options?: PassOptions): Promise<string>
-
Parameters
-
password: crypto.BinaryLike
-
realm: crypto.BinaryLike
-
Optional seed: string | Buffer
-
Returns Promise<string>
new password
genSeed
- genSeed(password: crypto.BinaryLike): Promise<Buffer>
-
Parameters
-
password: crypto.BinaryLike
Returns Promise<Buffer>
seed data
Cryptographically Secure Pseudo-Random Number Generator (CSPRNG)