I have these 2 helper functions to encrypt and descrypt a key/string:
export function encrypt(string, alsoEncodeURI = true) { let encrypted = CryptoJS.AES