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! Link to comment https://forums.phpfreaks.com/topic/220079-phpmysql-encrypting-quickly-decrypting-database-fields/ Share on other sites More sharing options...
Sleeper Posted November 28, 2010 Share Posted November 28, 2010 encrypted in what fashion? Like md5? Link to comment https://forums.phpfreaks.com/topic/220079-phpmysql-encrypting-quickly-decrypting-database-fields/#findComment-1140653 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. Link to comment https://forums.phpfreaks.com/topic/220079-phpmysql-encrypting-quickly-decrypting-database-fields/#findComment-1140654 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. Link to comment https://forums.phpfreaks.com/topic/220079-phpmysql-encrypting-quickly-decrypting-database-fields/#findComment-1140662 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. Link to comment https://forums.phpfreaks.com/topic/220079-phpmysql-encrypting-quickly-decrypting-database-fields/#findComment-1140666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.