TO ENCODE TEXT
SELECT TRANSLATE (UPPER('Hello world'),
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'~!@#$%^*()_+=-`/;:><[]{}\|') AS CODE
FROM DUAL;
TO DECODE TEXT
SELECT TRANSLATE ('*( -(+~\ *`{ ~:$ \`[?',
'~!@#$%^*()_+=-`/;:><[]{}\|',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ') AS TEXT
FROM DUAL;
No comments:
Post a Comment