• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Exception Thrown while Decrypting the Password  RSS feed

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. I have implemented encryption and decryption in this code.. Encryption is happening... but every time it gives different encrypted value .. i am not sure whether it is right or not ?

in decryption it is fetching correct values sometimes but sometimes it giving

badpadding exception ....



please let me know if there is any error in the code ?

thanks in advance
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you TellTheDetails?

ashwin bala wrote:Encryption is happening... but every time it gives different encrypted value .. i am not sure whether it is right or not ?



Is there any reason you can think of why it gives different values?
Why would this be a problem?
Why would this be the expected behaviour?
What factors control what result the encryption will give?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!