decrypt_aes filter
Returns the unencrypted value of the input string using a shared secret and optional salt. If no salt is provided, a default salt value is used.
Liquid filters for encryption, decryption, and security.
Returns the unencrypted value of the input string using a shared secret and optional salt. If no salt is provided, a default salt value is used.
{%- var secret = "my secret string" -%}
{%- var salt = "my salt" -%}encrypt_aes
{%- var securetext = "I want this to be reasonably secure" | encrypt_aes: secret, salt -%}
{{-securetext}}EAAAAIhwZI7hYpsYH7BdFMcQB+H31bacn2V1LECVVhc7OLWWgQdK6S641eAt2Rp2JixOvCTO0ArVkXzhIL988jVDL+w=
decrypt_aes
{{securetext | decrypt_aes: secret, salt }}I want this to be reasonably secure
Returns the encrypted value of the input string using a shared secret and optional salt. If no salt is provided, a default salt value is used.
{%- var secret = "my secret string" -%}
{%- var salt = "my salt" -%}encrypt_aes
{%- var securetext = "I want this to be reasonably secure" | encrypt_aes: secret, salt -%}
{{-securetext}}EAAAAIhwZI7hYpsYH7BdFMcQB+H31bacn2V1LECVVhc7OLWWgQdK6S641eAt2Rp2JixOvCTO0ArVkXzhIL988jVDL+w=
decrypt_aes
{{securetext | decrypt_aes: secret, salt }}I want this to be reasonably secure
Encodes a string to a URL-safe base64 format. The difference between the base64 and URL-safe base64 formats is that the URL-safe format uses - and _ in place of + and /, which can cause problems when used in a URL.
base64_encode
{{ '>>> do you want to stop?' | base64_encode }}Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/
base64_decode
{{ 'Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/' | base64_decode }}>>> do you want to stop?
base64_url_safe_encode
{{ '>>> do you want to stop?' | base64_url_safe_encode }}Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_
base64_url_safe_decode
{{ 'Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_' | base64_url_safe_decode }}>>> do you want to stop?
Decodes a string from a URL-safe base64 format. The difference between the base64 and URL-safe base64 formats is that the URL-safe format uses - and _ in place of + and /, which can cause problems when used in a URL.
base64_encode
{{ '>>> do you want to stop?' | base64_encode }}Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/
base64_decode
{{ 'Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/' | base64_decode }}>>> do you want to stop?
base64_url_safe_encode
{{ '>>> do you want to stop?' | base64_url_safe_encode }}Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_
base64_url_safe_decode
{{ 'Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_' | base64_url_safe_decode }}>>> do you want to stop?
Encodes a string to Base64 format
base64_encode
{{ '>>> do you want to stop?' | base64_encode }}Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/
base64_decode
{{ 'Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/' | base64_decode }}>>> do you want to stop?
base64_url_safe_encode
{{ '>>> do you want to stop?' | base64_url_safe_encode }}Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_
base64_url_safe_decode
{{ 'Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_' | base64_url_safe_decode }}>>> do you want to stop?
Decodes a string from Base64 format
base64_encode
{{ '>>> do you want to stop?' | base64_encode }}Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/
base64_decode
{{ 'Pj4+IGRvIHlvdSB3YW50IHRvIHN0b3A/' | base64_decode }}>>> do you want to stop?
base64_url_safe_encode
{{ '>>> do you want to stop?' | base64_url_safe_encode }}Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_
base64_url_safe_decode
{{ 'Pj4-IGRvIHlvdSB3YW50IHRvIHN0b3A_' | base64_url_safe_decode }}>>> do you want to stop?