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

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.

Reply With Quote
  #2 (permalink)  
Jaded Developer
Join Date: Nov 2004
Location: out on a limb
Posts: 12,291
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
Is taking part in the 'Distinguished Gentlemans' ride. Being neither distinguished nor a gentleman, but I am keen to raise funds for Prostrate Cancer research. At present I'm threatening to ride a Norton 961 wearing a kilt. If you would like to contribute to Prostrate Cancer research then please consider donating via this page:-
Reply With Quote

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