Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> DBMS_OBFUSCATION vs DBMS_CRYPTO
Can someone explain why I get different results for the following test? I
was expecting the ciphertext to be the same. I am running oracle 10.1.0.3
on linux.
Any help in explaining this would be appreciated.
seed VARCHAR2(128) := 'this is the seed'; key RAW(128); block_size INTEGER := 8; plain_text VARCHAR2(128) := 'this is the string that will be encrypted'; old_ciphertext RAW(128); new_ciphertext RAW(128); blocks INTEGER; pad_chr VARCHAR2(1) := '*';
BEGIN
--
--
DBMS_OUTPUT.PUT_LINE('DBMS_OFUSCATION_TOOLKIT: '); DBMS_OUTPUT.PUT_LINE(UTL_RAW.CAST_TO_VARCHAR2(UTL_ENCODE.BASE64_ENCODE(old_ciphertext))); DBMS_OUTPUT.PUT_LINE('DBMS_CRYPTO: '); DBMS_OUTPUT.PUT_LINE(UTL_RAW.CAST_TO_VARCHAR2(UTL_ENCODE.BASE64_ENCODE(new_ciphertext)));
END;
/
DBMS_CRYPTO:
CH54MSIqv7UVBufSj4S2gy/liDwwb6YpBuz+C+NkOr7cok8vLinWeL6usA02zAIA
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Oct 13 2005 - 16:29:49 CDT
![]() |
![]() |