Package org.apache.drill.exec.udfs
Class CryptoFunctions.AESEncryptFunction
java.lang.Object
org.apache.drill.exec.udfs.CryptoFunctions.AESEncryptFunction
- All Implemented Interfaces:
DrillFunc
,DrillSimpleFunc
- Enclosing class:
- CryptoFunctions
aes_encrypt()/ aes_decrypt(): implement encryption and decryption of data using the official AES (Advanced Encryption Standard) algorithm,
previously known as "Rijndael." AES_ENCRYPT() encrypts the string str using the key string key_str and returns a
binary string containing the encrypted output.
Usage: SELECT aes_encrypt( 'encrypted_text', 'my_secret_key' ) AS aes FROM (VALUES(1));
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AESEncryptFunction
public AESEncryptFunction()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-