lockbox Class
The main Lockbox module.
Item Index
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.
encrypt
(
Buffer
-
key
-
data
Encrypt a data packet.
Parameters:
-
key
ursa.KeyThe key to encrypt with.
-
data
String | BufferThe data to encrypt.
Returns:
Buffer:
The encrypted data.