decrypt_ff1_int()
Description
Given an encrypted string created using encrypt_ff1_int()
and a profile name, returns its decrypted cleartext.
function decrypt_ff1_int (inputString varchar(8192) CHARACTER SET LATIN, inputKeyname varchar(256)) returns integer
Example
The following example decrypts an integer number. It is assumed that a profile has been set up in profiles.conf
with the name tokenize_CC_FF1
and the encryption method ff1
.
BTEQ -- Enter your SQL request or BTEQ command:
#select decrypt_ff1_int('-99473','tokenize_CC_FF1');
#select decrypt_ff1_int('-99473','tokenize_CC_FF1');
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
thales.decrypt_ff1_int('-99473','tokenize_CC_FF1')
-----------------------------------------------------------------------
-90000