Skip to main content

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

ConstructorModifiersDescription
(constructor)(secretKey)Constructs a new instance of the SecretBox class

Methods

MethodModifiersDescription
createSecretKey()static
decrypt(encryptedMessageHex)
encrypt(message)