Lava Filters - Encrypt

Category:Text

Description:Encrypts a string of text using the encryption key configured for the current Rock instance.
Input:
Lava: {% assign encryptedText = 'This is my secret!' | Encrypt %}

The encrypted message is: {{ encryptedText }}

{% assign decryptedText = encryptedText | Decrypt %}

The decrypted message is: {{ decryptedText }}

Output: The encrypted message is: EAAAACRNk6LPcaap5MAIHV2+8ld/IzM2sLbG8PdcGNBDtJN5 The decrypted message is: This is my secret!