mottwsc Posted November 28, 2010 Share Posted November 28, 2010 I'm using PHP and MySQL. I have an application where I'd like to keep certain database (character) fields encrypted when added to the database and stored, but when I need to display them at the appropriate time, I can call a function and quickly decrypt them for display. Does anyone know of a simple way to do this? Thanks! Quote Link to comment Share on other sites More sharing options...
Sleeper Posted November 28, 2010 Share Posted November 28, 2010 encrypted in what fashion? Like md5? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 28, 2010 Share Posted November 28, 2010 MySQL's encrypt/decrypt functions would be a logical place to start. Quote Link to comment Share on other sites More sharing options...
mottwsc Posted November 28, 2010 Author Share Posted November 28, 2010 Yes, maybe md5 as long as I can decrypt it quickly. I will also look at the encrypt/decrypt functions mentioned. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 28, 2010 Share Posted November 28, 2010 MD5 is a hashing algorithm, and as such is non-reversible. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.