Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Encryption  RSS feed

 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did it. I'm encoding the encrypted string before saving, using Base64 (from Jakarta Commons-Codec).

Thanks anyway,
Tiago
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!