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.
To encrypt a value, just use the encrypt
method:
let encrypted = App.$crypto.encrypt("mystring");
To decrypt a value, just use the decrypt
method:
let decrypted = App.$crypto.decrypt(encrypted);