This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Security and the fly likes Encryption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Encryption" Watch "Encryption" New topic
Author

Encryption

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Hi,

I have an application uses JCE to encrypt/decrypt passwords when data get traffic between client and server side. Currently, I'm storing the password as text in a PostgreSQL database. I was trying to save the encrypted password in the DB, but when decrypting it, the values don't match at all (I was using DES). Which is the better way to protect passwords in the database, instead saving encrypted?

Thanks a lot.


Tiago Fernandez
http://www.tiago182.spyw.com/
Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
I did it. I'm encoding the encrypted string before saving, using Base64 (from Jakarta Commons-Codec).

Thanks anyway,
Tiago
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Encryption
 
It's not a secret anymore!