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