Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DECLARE
somevar RAW(128) ;
someinput RAW(128) ;
key_data RAW(128) ;
CURSOR c_values IS
SELECT encryptedvalue FROM encryptedtable ;
BEGIN
key_data := utl_raw.CAST_TO_RAW('thisisthekeyIusedinunixwithopenssl') ;
FOR rec IN c_values LOOP
someinput:= UTL_ENCODE.BASE64_DECODE(utl_raw.cast_to_raw(rec.encryptedvalue) );
DBMS_OBFUSCATION_TOOLKIT.DES3DECRYPT(INPUT =>someinput ,KEY=>key_data ,
DECRYPTED_string => somevar ) ;
dbms_output.put_line(utl_raw.CAST_TO_VARCHAR2(somevar)) ;
END LOOP ;
END ;
$ cat input
one
two
three
$ while read line ; do echo $line | openssl enc -des -base64 -pass pass:KenSentMe ; done < input > output
$ cat output
U2FsdGVkX1+ngxCnjqgILpnf0KSW4ysu
U2FsdGVkX1+o0txc6Rb2S3QWONNKlBdV
U2FsdGVkX1+L2RuXuN1fgC2sl2AmE9pL
$ while read line ; do echo $line | openssl enc -d -des -base64 -pass pass:KenSentMe ; done < output
one
two
three
$