API Docs for: 0.2.0
Show:

lockbox.BoundDecryptionCipher Class

The standard Lockbox decryption cipher, with a bound key.

Constructor

lockbox.BoundDecryptionCipher

(
  • key
  • [decryptionCipher]
  • [ursa]
)

Parameters:

  • key ursa.Key

    The key to decrypt with.

  • [decryptionCipher] lockbox.DecryptionCipher optional

    The decryption cipher to use.

  • [ursa] Ursa optional

    The Ursa module to use.

Item Index

Methods

Methods

decrypt

(
  • data
)
Buffer

Decrypt a data packet.

Throws:

Parameters:

  • data String | Buffer

    The data to decrypt.

Returns:

Buffer:

The decrypted data.