Skip to main content
Version: 24.3.x

Categories: Cryptography

AES_DECRYPT

Decrypts a string produced by AES encryption.

Syntax

AES_DECRYPT(ciphertext varchar, key varchar) → varchar

  • ciphertext: The string to be decrypted.
  • key: The key to use to decrypt the ciphertext. Must be 16, 24, or 32 characters.

Examples

AES_DECRYPT example
SELECT AES_DECRYPT(UNBASE64('UvicDn/xiUDmfSE+KYjjyw=='), 'mypassword123456')
-- Dremio