Solved

About Encription and decryption in java

Posted on 2003-11-24
5
217 Views
Last Modified: 2010-04-17
i have encripted a string by fetching from a database and using cipher class with base64 method and stored it again in to the database .Now while fetching from database and decripting im getting exception .Can anybody guide me how to decrypt an encrypted String from a database and display that decripted string.

(i have used DESede/ECB/PKCS5Padding algorithm)
kindly mail me

thanking u
shiva
0
Comment
Question by:prasadshiva
5 Comments
 
LVL 2

Accepted Solution

by:
override_y2k earned 25 total points
ID: 9813061
I just use java xoring for encryption, simple and sweet!
0
 
LVL 3

Assisted Solution

by:yasser_helmy
yasser_helmy earned 25 total points
ID: 9821146
what is the exception you get??
what is the database field type??
The problem may that when you encrypt the string, you get characters that cannot be stored in the db. So, when retrieving it back, you get an invalid string, so the decryption can't run on it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
A short article about a problem I had getting the GPS LocationListener working.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

920 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

15 Experts available now in Live!

Get 1:1 Help Now