contra10 Posted February 13, 2009 Share Posted February 13, 2009 i wanted to know how can i stript the md5 encript from this code when i want to echo it from the database <?php $_POST['pass'] = md5($_POST['pass']); if (!get_magic_quotes_gpc()) { $_POST['pass'] = addslashes($_POST['pass']); ?> how can i view it in real form i have already entered it into mysql and if i echo it out of course its going to show the string Quote Link to comment https://forums.phpfreaks.com/topic/145029-php-md5-decryption/ Share on other sites More sharing options...
Philip Posted February 13, 2009 Share Posted February 13, 2009 You can't. md5 is a one-way encryption. Quote Link to comment https://forums.phpfreaks.com/topic/145029-php-md5-decryption/#findComment-761020 Share on other sites More sharing options...
contra10 Posted February 13, 2009 Author Share Posted February 13, 2009 shoot...i should have read up on that...is there another way to encrpt so that i would be able to decrypt it later on? Quote Link to comment https://forums.phpfreaks.com/topic/145029-php-md5-decryption/#findComment-761025 Share on other sites More sharing options...
Philip Posted February 13, 2009 Share Posted February 13, 2009 You can use mysql's encode/decode http://dev.mysql.com/doc/refman/5.1/en/encryption-functions.html edit: by encode/decode, I should've mentioned to use AES - more secure. Quote Link to comment https://forums.phpfreaks.com/topic/145029-php-md5-decryption/#findComment-761028 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.