Available inall subroutines.

Equivalent to crypto.encrypt_hex but with the plaintext encoded in Base64. The ciphertext returned is also encoded in Base64.

Base64 decoding behaves as if by a call to digest.base64_decode. See that function for handling invalid characters and the behavior of padding. Unlike digest.base64_decode, the decoded output is used directly (rather than constructing a VCL STRING type), and so binary content is permitted, including possible NUL bytes.

Base64 encoding behaves as if by a call to digest.base64.

Note that the key and Initialization Vector (IV) are encoded as hex strings.

User contributed notes


Do you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact