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 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. 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? 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. Link to comment https://forums.phpfreaks.com/topic/145029-php-md5-decryption/#findComment-761028 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.