Options
All
  • Public
  • Public/Protected
  • All
Menu

passman

Index

Functions

createRNG

  • createRNG(password: crypto.BinaryLike, realm: crypto.BinaryLike, seed?: string | Buffer): Promise<crypto.Cipher>
  • Cryptographically Secure Pseudo-Random Number Generator (CSPRNG)

    Parameters

    • password: crypto.BinaryLike

      master password

    • realm: crypto.BinaryLike

      identify string (like URL)

    • Optional seed: string | Buffer

      generated seed data previously

    Returns Promise<crypto.Cipher>

    CSPRNG stream

gcmDecrypt

  • gcmDecrypt(password: crypto.BinaryLike, data: string | Buffer): Promise<Buffer>
  • Decrypt data with AES-256-GCM

    Parameters

    • password: crypto.BinaryLike

      password for decrypt

    • data: string | Buffer

      encrypted data (salt + ciphertext + tag)

    Returns Promise<Buffer>

    salt + plaintext + tag

gcmEncrypt

  • gcmEncrypt(password: crypto.BinaryLike, data: crypto.BinaryLike): Promise<Buffer>
  • Encrypt data with AES-256-GCM

    Parameters

    • password: crypto.BinaryLike

      password for encrypt

    • data: crypto.BinaryLike

      plaintext data

    Returns Promise<Buffer>

    salt + ciphertext + tag

genPass

  • genPass(password: crypto.BinaryLike, realm: crypto.BinaryLike, seed?: string | Buffer, options?: PassOptions): Promise<string>
  • Generate password with master password, realm and seed

    Parameters

    • password: crypto.BinaryLike

      master password

    • realm: crypto.BinaryLike

      identify string (like URL)

    • Optional seed: string | Buffer

      seed data (optional)

    • Optional options: PassOptions

      options for generate

    Returns Promise<string>

    new password

genSeed

  • genSeed(password: crypto.BinaryLike): Promise<Buffer>
  • Generate seed with master password

    Parameters

    • password: crypto.BinaryLike

      master password for generate seed

    Returns Promise<Buffer>

    seed data

Generated using TypeDoc