Members
(static, nullable) version :String
The version of libsodium, or null if the sodium module is not enabled.
Type:
- String
Methods
(static) encrypt() → {NativeFunction.<Buffer>}
- Source:
- See:
Encrypts with sodium
Returns:
- A native function to be run with a
Chain
- Type
- NativeFunction.<Buffer>
Type Definitions
EncryptArguments
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Buffer |
<optional> |
The input data, may be left out if piping from another NativeFunction |
key |
Buffer | The encryption key |
|
nonce |
Buffer |
<optional> |
The nonce, will be generated if not provided |
Arguments for sodium.encrypt
Type:
- Object