Solved

Conversion from base64 encoded string in java to varchar in oracle

Posted on 2004-09-06
1
1,588 Views
Last Modified: 2012-05-05
hi,

We have encrypted a value in java using des3 with a specific key.  We have converted this byte array to
a base64 encoded string value.

Now we want to decrypt this data using des3 in oracle.
To do this do we
1) convert String to raw value using UTL_RAW.CAST_TO_RAW(base64String)
2) Decode base 64 raw value using UTL_DECODE.BASE64_ENCODE
3) Decrypt using des3 oracle passing in key, and value returned from 2.
4) Convert to varchar2 using UTL_RAW.CAST_TO_VARCHAR2
0
Comment
Question by:inzaghi
1 Comment
 
LVL 23

Accepted Solution

by:
seazodiac earned 500 total points
ID: 11990536
I think you should explore what DBMS_OBFUSCATION_TOOLKIT package offers to you.

it has DBMS_OBFUSCATION_TOOLKIT.DECRYPT() procedures , overloading procedures to decipher the byte array encoded using JAva DES3 algorithm
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now