SecretBox class
This is an implementation of AbstractSecretBox that uses a JavaScript nacl secretBox implementation for encryption.
See PrivateKeyStore See PrivateKeyStoreJson See AbstractSecretBox
Signature:
export declare class SecretBox extends AbstractSecretBox
Extends: AbstractSecretBox
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(secretKey) | Constructs a new instance of the SecretBox class |
Methods
Method | Modifiers | Description |
---|---|---|
createSecretKey() | static | |
decrypt(encryptedMessageHex) | ||
encrypt(message) |