Hey all,
I am looking for a way to convert a hex_encoded string to a varchar ie
select 'test-string' as text,
hex_encode('test-string') as hex_encoded_string,
hex_decode(hex_encode('test-string')) as reverse_of_above_binary,
???(hex_decode(hex_encode('test-string')) as should_be_original_text
from RDB$DATABASE
I have tried cast but it gave me the hex_encoded value.
I am looking to have a value XOR'd against a hash and the encrypted value stored, to be reversed by certain functions.
Has anyone done anything like this?