CAROLINA DOCS


Crypto

The "crypto" app provides a service that encrypts and decrypts values using the site secret (from the "secrets" app) and the NPM module simple-encryptor.

Encryption

To encrypt a value, just use the encrypt method:

let encrypted = App.$crypto.encrypt("mystring");

Decryption

To decrypt a value, just use the decrypt method:

let decrypted = App.$crypto.decrypt(encrypted);

CAROLINA DOCS