Solved

About Encription and decryption in java

Posted on 2003-11-24
5
224 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

726 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