decrypt_ff1_smallint()
Description
Given an encrypted string created using encrypt_ff1_smallint()
and a profile name, returns its decrypted cleartext.
function decrypt_ff1_smallint (inputString varchar(8192) CHARACTER SET LATIN, inputKeyname varchar(256)) returns smallint
Example
The following example decrypts a smallint 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_smallint('83365','tokenize_CC_FF1');
#select decrypt_ff1_smallint('83365','tokenize_CC_FF1');
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
thales.decrypt_ff1_smallint('83365','tokenize_CC_FF1')
-----------------------------------------------------------------------
21690