If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Encrypt and Decrypt a column in Mysql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Feb 2013
Posts: 1
Thumbs up Encrypt and Decrypt a column in Mysql

Hi all,

I'm doing JDBC, I'm newbie to Databases. I want to encrypt and decrypt password column in Mysql database. I need your guidance.

Thanks,
Ranjeet.
Reply With Quote
  #2 (permalink)  
Old
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 12,073
yo don't decrypt passwords
its a one way trip
encrypt the users password,using what ever mode you choose to use (could use a front end function or an internal MySQL encryption function
when you request a password repeat the encryption process and compare the encrypted values. providing you use the same method to encrypt then there is no problems
storing passwords in a db in clear is a bad move
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Tags
decrypt, encrypt, mysql database

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On