Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Conversion from base64 encoded string in java to varchar in oracle

Posted on 2004-09-06
1
Medium Priority
?
1,616 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
seazodiac earned 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

719 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