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