API Docs for: 0.2.0
Show:

lockbox.BoundEncryptionCipher Class

The standard Lockbox encryption cipher, with a bound key.

Constructor

lockbox.BoundEncryptionCipher

(
  • key
  • [encryptionCipher]
  • [ursa]
)

Parameters:

  • key ursa.Key

    The key to encrypt with.

  • [encryptionCipher] lockbox.EncryptionCipher optional

    The encryption cipher to use.

  • [ursa] Ursa optional

    The Ursa module to use.

Item Index

Methods

Methods

encrypt

(
  • data
)
Buffer

Encrypt a data packet.

Parameters:

  • data String | Buffer

    The data to encrypt.

Returns:

Buffer:

The encrypted data.