API Docs for: 0.2.0
Show:

lockbox.DecryptionCipher Class

The standard Lockbox decryption cipher.

Constructor

lockbox.DecryptionCipher

(
  • [crypto]
  • [ursa]
)

Parameters:

  • [crypto] Crypto optional

    The cryptography module to use.

  • [ursa] Ursa optional

    The Ursa module to use.

Item Index

Methods

Methods

decrypt

(
  • key
  • data
)
Buffer

Decrypt a data packet.

Throws:

Parameters:

  • key ursa.Key

    The key to decrypt with.

  • data String | Buffer

    The data to decrypt.

Returns:

Buffer:

The decrypted data.