Solved

About Encription and decryption in java

Posted on 2003-11-24
5
222 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…

789 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