lockbox.BoundDecryptionCipher Class
The standard Lockbox decryption cipher, with a bound key.
Constructor
lockbox.BoundDecryptionCipher
(
-
key
-
[decryptionCipher]
-
[ursa]
Parameters:
-
key
ursa.KeyThe key to decrypt with.
-
[decryptionCipher]
lockbox.DecryptionCipher optionalThe decryption cipher to use.
-
[ursa]
Ursa optionalThe Ursa module to use.
Item Index
Methods
Methods
decrypt
(
Buffer
-
data
Decrypt a data packet.
Throws:
- lockbox.exception.DecryptionFailedException If the decryption failed.
Parameters:
-
data
String | BufferThe data to decrypt.
Returns:
Buffer:
The decrypted data.