Encryption results in 8i and 9i are different

I have the problem with encryption of data with DES key (DBMS_OBFUSCATION_TOOLKIT package). Encryption resuls are different in 8i and 9i database. I have data encrypted in 8i db and i am unable to decrypt them in 9i db. Have anyone same experience and some solution?
There are different result with example code from bulletin "Encrypting Data using the DBMS_OBFUSCATION_TOOLKIT package" - Doc ID: Note:102902.1:
===============================================================
set serveroutput on;
CLEAR BUFFER
PROMPT Please enter a password - Must be 8 characters !
PROMPT
ACCEPT PASSWD
DECLARE
input_string VARCHAR2(16) := 'abcdefgh';
raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(input_string);
key_string VARCHAR2(16) := 'keepthesecretnum';
raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(key_string);
encrypted_raw RAW(2048);
encrypted_string VARCHAR2(2048);
decrypted_raw RAW(2048);
decrypted_string VARCHAR2(2048);
error_in_input_buffer_length EXCEPTION;
PRAGMA EXCEPTION_INIT(error_in_input_buffer_length, -28232);
INPUT_BUFFER_LENGTH_ERR_MSG VARCHAR2(100) :=
'*** DES INPUT BUFFER NOT A MULTIPLE OF 8 BYTES - IGNORING EXCEPTION ***';
double_encrypt_not_permitted EXCEPTION;
PRAGMA EXCEPTION_INIT(double_encrypt_not_permitted, -28233);
DOUBLE_ENCRYPTION_ERR_MSG VARCHAR2(100) :=
'*** CANNOT DOUBLE ENCRYPT DATA - IGNORING EXCEPTION ***';
-- 1. Begin testing raw data encryption and decryption
BEGIN
dbms_output.put_line('> ========= BEGIN TEST RAW DATA =========');
dbms_output.put_line('> Raw input : ' ||
UTL_RAW.CAST_TO_VARCHAR2(raw_input));
BEGIN
dbms_obfuscation_toolkit.DESEncrypt(input => raw_input,
key => raw_key, encrypted_data => encrypted_raw );
dbms_output.put_line('> encrypted hex value : ' ||
rawtohex(encrypted_raw));
dbms_obfuscation_toolkit.DESDecrypt(input => encrypted_raw,
key => raw_key, decrypted_data => decrypted_raw);
dbms_output.put_line('> Decrypted raw output : ' ||
UTL_RAW.CAST_TO_VARCHAR2(decrypted_raw));
dbms_output.put_line('> ');
if UTL_RAW.CAST_TO_VARCHAR2(raw_input) =
UTL_RAW.CAST_TO_VARCHAR2(decrypted_raw) THEN
dbms_output.put_line('> Raw DES Encyption and Decryption successful');
END if;
EXCEPTION
WHEN error_in_input_buffer_length THEN
dbms_output.put_line('> ' || INPUT_BUFFER_LENGTH_ERR_MSG);
END;
dbms_output.put_line('> ');
END;
===============================================================
Result in 8i (8.1.7.0.0):
========= BEGIN TEST RAW DATA =========
Raw input : abcdefgh
encrypted hex value : 13E7047CADC24D5E
Decrypted raw output : abcdefgh
Raw DES Encyption and Decryption successful
Result in 9i (9.0.1.0.0):
========= BEGIN TEST RAW DATA =========
Raw input : abcdefgh
encrypted hex value : FBC0CF116D1B48E8
Decrypted raw output : abcdefgh
Raw DES Encyption and Decryption successful

I know Oracle intended to introduce stronger encryption in 9i, but I thought they did that by adding new procedures. I know they occasionally change the hashing algorithm, so you have to be careful with stored passwords and the like. But if they really have screwed up the DESEncrypt function, that is very poor.
I would recommend you contact Support about it. If you don't have a support contract and this is a bug then I think the only thing you can do is to restore your 8i database, decrypt the data, then do the ungrade and re-encrypt. But this sort of thing really ought to be in the Release Notes.
Good luck, APC

Similar Messages

  • I have a macbook pro, and i want to transfer my hard drive from my macbook, but the display drivers and such are different.  How do i do this?

    I have a macbook pro, and i want to transfer my hard drive from my macbook (500g), but the display drivers and such are different.  How do i do this and is it possible?
    The Macbook Pro has Mac OS X 10.4.11 (70g hard drive)
    The Macbook has Mac OS X 10.6.8 (500g hard drive)

    The MacBook's hard drive lacks the necessary hardware drivers to boot the MacBook Pro even though it has a much newer OS on it; that's why simply moving it into the Pro doesn't work. Presumably you have a very old MB Pro, because only the very first MB Pro model (produced January to May 2006) was ever offered with an 80GB hard drive. Are you sure you want to move your big drive into such an old machine? The MacBook must be newer, because the first MacBook was introduced just as the first Pro model was discontinued.

  • HT204053 I put an iTunes gift card into my iTunes app and wanted to use it to buy more iCloud storage. How do I do that? iTunes and iCloud are different accounts. Help

    I put an iTunes gift card into my iTunes app and wanted to use it to buy more iCloud storage. How do I do that? iTunes and iCloud are different accounts. Help

    Not on your own. Click here and ask the iTunes Store staff to put it back onto the card; they'll only do this if none of the balance has been spent.
    (115868)

  • BEx:Hierarchies in DIM and FAC are different for Cost Element

    Hi Experts,
    Whenever we execute a report we are getting a warning message as "Hierarchies in DIM and FAC are different for Cost Element", but in report level we are not maintaining hierarchy properties for Cost Element.
    We have executed Master Data tests in RSRV also and still the problem.
    Is any other to do to get rid of this warning message?
    Thanks in Advance.
    Regards,
    RAO.

    Hi all,
    I face the issue like this but with transaction KOAP - Plan settlement
    But, the problem is that, I do not active reconciliation ledger, so I do not maintain any thing relate to reconciation ledger or adjustment posting? I can do transaction "actual settlement"  without error
    So, How this error come to me?
    And how I can fix it?
    Thanks all!

  • Trigger Email to SC Requestor when SC Creator and Requestor are different

    Hi SRM Gurus,
    I need to trigger an email to SC Requestor when the SC Creator and Requestor are different.
    I searched in the forum but i couldn't get any details related to this.
    Please throw some light on this.
    Thank You.
    With Regards,
    P.Arunkumar

    Hi,
    A couple of approaches are possible:
    1) Incorporate the check into the approval-workflows. The information you need (both creator and requestor) are in the business-object (bus2121). This will require someone with knowledge of workflow, but it's not really all that difficult. Note that you use a notification-task and not a workitem to inform the requestor (you want them to get an email with info, not a workitem like an approver gets).
    Check out the workflow WS10400051 which is used at the end of all SC-workflows. It already contains checks on "sending mail" to approvers, reviewers etc. and a sub-workflow to generate mails to these agents. This would be an "easy" place to add your check and your mail-sending.
    2) Create a Z-copy of the BUS2121 and adapt the setreleased-function to handle sending the mail (less work but more invasive).
    If you have further questions, please report. I will check this thread in the coming time.
    If this helps you, please awards points.

  • Anyone knows the difference between this Protocol Encryption status or why there status are different?

    I am confused why there Protocol Encryption Status are different from each other they are all using AnyConnect client v2.5.
    user 1 - AnyConnect-Parent SSL-Tunnel RC4
    user  2 - AnyConnect-Parent SSL-Tunnel DTLS-Tunnel RC4 AES128
    user  3 - Clientless SSL-Tunnel DTLS-Tunnel (this user is using an AnyConnect client, but when she connects her status show Clientless)

    The 17" MBP has an extra USB 2.0 port and also comes with a FireWire 800 port.
    As far as the GPUs go, they are the same: ATi Mobility Radeon X1600.
    As far as the GPU-dedicated-RAM (VRAM) goes, the only difference is the amount (128MB vs 256MB). More VRAM is better if you are going to be running video intensive apps, eg. multimedia apps and/or 3D games. The VRAM is GDDR3 which provides greater bandwidth than the DDR2 technology used in the 512MB/1GB/2GB of 'main memory'.
    There is, of course, the different CPU multipliers. The 1.83GHz has an 11x multiplier while the 2.00GHz has a 12x multiplier. The 2.16GHz CPU of the 17" MBP has a 13x CPU multiplier.
    The Front Side Bus speed is the same 667MHz on all three models. It drops down to 167MHz at the boundary of the CPU to which is applied the above multipliers, ie:
    667MHz FSB / 4 = 167MHz
    167MHz x 11 = 1.83GHz
    167MHz x 12 = 2.00GHz
    167MHz x 13 = 2.16GHz
    N.B. 167MHz is really 1000/6.

  • Parametrized relation connections - don't work when source and target are different

    Hi All,I have next problem:I am using parametrized relation connection firstConnection (user and (encripted)password are taken from parameter file). Here are values from param file: $DBConnection_source=firstConnection$DBConnection_source=firstConnection$ParamUser=svaba$ParamPwd=Dni32iRiH0Yjro1U04+RTC==  This is (source and target are same) working fine for years.
     But now I need two different connection, i.e. source is (existing)   firstConnection and target is secondConnection. On both instances I have  same user 
      (svaba) with same password. I created second parameterized connection with  user = $ParamUser    and password = $ParamPwd     Now, parameters are: $DBConnection_source=firstConnection$DBConnection_source=secondConnection$ParamUser=svaba$ParamPwd=Dni32iRiH0Yjro1U04+RTC== When run workflow, got error: ORA-01005: null password given: logon denied.I triede to change connections by entering values for password (not use parameters for password) got error: ORA-01017:invalid username/password:logon denied.When I am using same (parametrized) connection for source and target (any of these two) everything is fine. That is sign that connections are good. Does someone have any idea about this problem

    Hi All,I have next problem:I am using parametrized relation connection firstConnection (user and (encripted)password are taken from parameter file). Here are values from param file: $DBConnection_source=firstConnection$DBConnection_source=firstConnection$ParamUser=svaba$ParamPwd=Dni32iRiH0Yjro1U04+RTC==  This is (source and target are same) working fine for years.
     But now I need two different connection, i.e. source is (existing)   firstConnection and target is secondConnection. On both instances I have  same user 
      (svaba) with same password. I created second parameterized connection with  user = $ParamUser    and password = $ParamPwd     Now, parameters are: $DBConnection_source=firstConnection$DBConnection_source=secondConnection$ParamUser=svaba$ParamPwd=Dni32iRiH0Yjro1U04+RTC== When run workflow, got error: ORA-01005: null password given: logon denied.I triede to change connections by entering values for password (not use parameters for password) got error: ORA-01017:invalid username/password:logon denied.When I am using same (parametrized) connection for source and target (any of these two) everything is fine. That is sign that connections are good. Does someone have any idea about this problem

  • HT204053 My apple ID on my phone and Imac are different and neither will let me change them to match.  What do I do next?

    I am trying to set up my icloud on the \Imac and Iphone 4S and the icloud ID's are different.  I want to chnage the phones icloud user ID but can't seem to make it happen.  Not sure what to do next

    Welcome to the Apple Community..
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • My apple id and icloud are different and my iphone keeps telling me to enter my icloud id

    I don't actively "use" my icloud and my id on the icloud and my itunes account/apple id are different (I've forgotten multiple times and have reset).  How can I stop my phone from tellingme over and over to enter my icloud id?

    If it is signed into and iCloud account in Settings>iCloud and is running iOS 7 with Find My iDevice enabled, you will have to provide the correct password for your iCloud account.  (An iCloud ID is also an Apple ID.)
    If you don't remember the password, you will have to reset it as explained here: http://support.apple.com/kb/PH2617.

  • Same fonts used in Flash and FLEX are different

    Fonts used in Flash and Flex differs in appearance even though they are same. It lacks the anti alias property and shows pixelated in flex even if it appears normal in flash. Please see attachment.

    There can be several reasons for that.  First make sure the font is embedded properly.  Rotate the object and see how it looks.  It is also possible that in Flex the fonts are being captured as a bitmap which can turn off AA at times.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • I have 2007 iMac intel, 10.4.1 with a crashed WD 2500JS boot drive. Bought a WD 3200E(AAX) which claims it is for Mac OS but documentation is unclear on WD site and plugs are different. It's SATA 7200, no instr. for boot inst.What is ideal replace?

    After boot drive crash, I need to replace hard drive on 2007 Intel iMac running 10.4.1 (updating to Snow Leopard with Time Machine after replacement). There is a question not answered in lit. and docs about suitability of WD3200AAKS as replacement for WD2500JS for boot drive. The amps on the 5 and 12 VDC pins are very slightly different. Any body with a comment will help to minimize a problem with very bad timing! (When is a hd crash well-timed?!)

    Thanks Kappy, the plugs are OK, just inset a little, so it looked different at first: My concern is the slightly different amperage of the 5 and 12 VDC pins, a very minor diff. not likely a problem. BTW, the little four wire cable with the tiny circuit that sticks to the side of the drive is a heat sensor that triggers the fan if it gets hot.

  • ASA interface name and nameif are different

    Hi Everyone,
    On one of ASA  i have this config say
    interface BCISCO
    nameif CISCO
    ip address 192.168.x.x 255.255.0.0 standby IP 192.168.x.x
    Need to understand why we have interface and nameif different here?
    Also when i try to access ASA  by ASDM to ASA  from internal network log shows
    built inbound TCP connection for ASA interface.
    So need to know whenever we access ASA  from internal network it will say inbound connection?
    Or there are some criteria that tells when connection is inbound to ASA?
    Thanks
    MAhesh

    Hi Jouni,
    yes it is in context mode
    72           2013/04/17 10:10:59.640 MST     192.168.100.12  Apr 17 2013 17:10:58: %ASA-6-302013: Built inbound TCP connection 11283929 for Net:192.168.100.17/62287 (192.168.100.17/62287) to identity:192.168.100.12/443 (192.168.100.12/443)
    71           2013/04/17 10:10:59.640 MST     192.168.100.12  Apr 17 2013 17:10:58: %ASA-6-106015: Deny TCP (no connection) from 192.168.100.17/62286 to 192.168.100.12/443 flags FIN ACK  on interface Net
    70           2013/04/17 10:10:59.640 MST     192.168.100.12  Apr 17 2013 17:10:58: %ASA-6-302014: Teardown TCP connection 11283774 for Net:192.168.100.17/62286 to identity:192.168.100.12/443 duration 0:00:03 bytes 381 TCP Reset-O
    69           2013/04/17 10:10:59.640 MST     192.168.100.12  Apr 17 2013 17:10:58: %ASA-6-605005: Login permitted from 192.168.100.17/62286 to Net:192.168.100.12/https for user "cisco"
    68           2013/04/17 10:10:56.343 MST     192.168.100.12  Apr 17 2013 17:10:55: %ASA-6-302013: Built inbound TCP connection 11283774 for Net:192.168.100.17/62286 (192.168.100.17/62286) to identity:192.168.100.12/443 (192.168.100.12/443)
    67           2013/04/17 10:10:56.343 MST     192.168.100.12  Apr 17 2013 17:10:55: %ASA-6-106015: Deny TCP (no connection) from 192.168.100.17/62285 to 192.168.100.12/443 flags FIN ACK  on interface Net
    66           2013/04/17 10:10:56.343 MST     192.168.100.12  Apr 17 2013 17:10:55: %ASA-6-302014: Teardown TCP connection 11283684 for Net:192.168.100.17/62285 to identity:192.168.100.12/443 duration 0:00:03 bytes 381 TCP Reset-O
    65           2013/04/17 10:10:56.343 MST     192.168.100.12  Apr 17 2013 17:10:55: %ASA-6-605005: Login permitted from 192.168.100.17/62285 to Net:192.168.100.12/https for user "cisco"
    64           2013/04/17 10:10:56.343 MST     192.168.100.12  Apr 17 2013 17:10:55: %ASA-6-606001: ASDM session number 0 from 192.168.100.17 started
    63           2013/04/17 10:10:56.343 MST     192.168.100.12  Apr 17 2013 17:10:55: %ASA-6-605005: Login permitted from 192.168.100.17/62284 to Net:192.168.100.12/https for user "cisco"
    62           2013/04/17 10:10:52.733 MST     192.168.100.12  Apr 17 2013 17:10:51: %ASA-6-302013: Built inbound TCP connection 11283684 for Net:192.168.100.17/62285 (192.168.100.17/62285) to identity:192.168.100.12/443 (192.168.100.12/443)
    61           2013/04/17 10:10:52.718 MST     192.168.100.12  Apr 17 2013 17:10:51: %ASA-6-302013: Built inbound TCP connection 11283681 for Net:192.168.100.17/62284 (192.168.100.17/62284) to identity:192.168.100.12/443 (192.168.100.12/443)
    60           2013/04/17 10:10:52.515 MST     192.168.100.12  Apr 17 2013 17:10:51: %ASA-6-106015: Deny TCP (no connection) from 192.168.100.17/62283 to 192.168.100.12/443 flags FIN ACK  on interface Net
    59           2013/04/17 10:10:52.515 MST     192.168.100.12  Apr 17 2013 17:10:51: %ASA-6-302014: Teardown TCP connection 11283636 for Net:192.168.100.17/62283 to identity:192.168.100.12/443 duration 0:00:02 bytes 806 TCP Reset-O
    58           2013/04/17 10:10:52.515 MST     192.168.100.12  Apr 17 2013 17:10:51: %ASA-6-605005: Login permitted from 192.168.100.17/62283 to Net:192.168.100.12/https for user "cisco"
    57           2013/04/17 10:10:52.358 MST     192.168.100.12  Apr 17 2013 17:10:51: %ASA-6-606003: ASDM logging session number 0 from 192.168.100.17 started
    56           2013/04/17 10:10:52.358 MST     192.168.100.12  Apr 17 2013 17:10:51: %ASA-6-605005: Login permitted from 192.168.100.17/62282 to Net:192.168.100.12/https for user "cisco"
    55           2013/04/17 10:10:50.374 MST     192.168.100.12  Apr 17 2013 17:10:49: %ASA-6-302013: Built inbound TCP connection 11283636 for Net:192.168.100.17/62283 (192.168.100.17/62283) to identity:192.168.100.12/443 (192.168.100.12/443)
    54           2013/04/17 10:10:50.140 MST     192.168.100.12  Apr 17 2013 17:10:49: %ASA-6-302013: Built inbound TCP connection 11283629 for Net:192.168.100.17/62282 (192.168.100.17/62282) to identity:192.168.100.12/443 (192.168.100.12/443)
    53           2013/04/17 10:10:50.108 MST     192.168.100.12  Apr 17 2013 17:10:49: %ASA-6-106015: Deny TCP (no connection) from 192.168.100.17/62281 to 192.168.100.12/443 flags FIN ACK  on interface Net
    52           2013/04/17 10:10:50.108 MST     192.168.100.12  Apr 17 2013 17:10:49: %ASA-6-302014: Teardown TCP connection 11283529 for Net:192.168.100.17/62281 to identity:192.168.100.12/443 duration 0:00:02 bytes 3107 TCP Reset-O
    51           2013/04/17 10:10:49.937 MST     192.168.100.12  Apr 17 2013 17:10:49: %ASA-6-605005: Login permitted from 192.168.100.17/62281 to Net:192.168.100.12/https for user "cisco"
    50           2013/04/17 10:10:47.640 MST     192.168.100.12  Apr 17 2013 17:10:46: %ASA-6-302013: Built inbound TCP connection 11283529 for Net:192.168.100.17/62281 (192.168.100.17/62281) to identity:192.168.100.12/443 (192.168.100.12/443)
    Where interface NET is ASA interface with IP 192.168.100.12
    192.168.100.17 is MY PC IP
    This is log while i access the ASA  by https.
    Can you please tell in logs why it has repeat logs for example
    ASDM logging session started  it has this line 2 times
    Thanks
    MAhesh

  • I have firefox on 2 computers and there are different bookmarks on the 2 computers. If I sync them, will I have on set of bookmarks that includes both?

    I have 2 Macs, a Mac pro tower and a Macbook pro. Since I use both computers, I have 2 sets of bookmarks with some overlap between the two. I would like to sync them so that I can access bookmarks that I created on one computer on the other one. The question is, if I perform a sync, will the two sets become a single set including all the bookmarks on both machines or will I end up erasing one of the sets? Also, if I have the same bookmark on both machines, will I end up with redundant bookmarks? Thanks for your help.

    Ideally the bookmarks will merge, however if there are duplicates on either machines, I do not know where these bookmarks will sync to, I have not tested this yet.
    Redundant bookmarks should be removed.

  • Why are the nr of records in RSDDSTATBIAUSE and RSDDSTAT_DM are different?

    For a given period I am trying to find out how many times BIA was used.
    First I went to RSDDSTATBIAUSE table for the Cube ZCUBE123 and check the number in the field BIA_USED.
    For the same period I went to RSDDSTAT_DM view, and checked the number of entries for the same period under the AGGREGATE=ZCUBE123$X. The numbers are not matching. Why?
    And what's the right way to get this achive what I am trying to do?
    Thanks
    Tansu
    PS: This is not non-cumulative cube.

    Well, that's the question we had the other time as well why you cannot match numbers between RSDDSTAT* tables, Tech.Content InfoCubes and ST03N
    I believe it is a question to SAP Developers on what's the logic (filters? classifications?) when writing to thiese tables.
    Regards,
    -Vitaliy

  • Interface and functions are different

    hello
    I have Ipod nano 6th generation. I looked manual and i found that it has some functions like: to make icons more big or to choose option of Running in my fitness trainer. But i don´t have those functions in my Ipod
    Could you help me?

    Are you sure you have a 6G Nano?
    Most of these options can be found in the Settings app. If you do see the Settings app, swipe your finger to the left or right from your iPod's Home Screen to bring up additional menu items/apps.
    B-rock

Maybe you are looking for

  • Log On problem via webgui. sap/bc/gui/sap/its/webgui

    Hello, would you be so kind to help me in my problem. I have sap web as 7.00, and i have published a service for using "sap gui for html" via browser from the Remote Place. http://........./sap/bc/gui/sap/its/webgui icm/server_port_0 i made 80 in the

  • How to Order more than One Book

    Hello Apple Team I have built 3 different books in Iphoto. I have not ordered any of them yet because I was under the impression that ordering all 3 at one time would make me eligible for free shipping. However, I cannot figure out how to place an or

  • Naming convention best practice for PDB pluggable

    In OEM, the auto discovery for a PDB produces a name using the cluster as the prefix and the database name suffix, such as: odexad_d_alpcolddb_alpcolddb-scan_PDBODEXAD If that PDB is moved to another cluster, I imagine that name will not change but t

  • Skype Button drop down is not showing foreground.....

    Skype Button is presented using http://www.skypeassets.com/i/scom/js/skype-uri.js <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"​></script> <div id="SkypeButton_Call_[Removed for privacy]_1">   <script type="te

  • AS3: organized text blocks

    Hey, I have a problem regarding text appearence on screen. I have few TFL dynamic text fields in CS5.5 that update each time according to users choises (a dictionary, in hebrew if it matters). As a text field I can't break lines or organize the text