Solved

About Encription and decryption in java

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
This article will show, step by step, how to integrate R code into a R Sweave document
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 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

22 Experts available now in Live!

Get 1:1 Help Now