Matar Posted February 8, 2007 Share Posted February 8, 2007 hi all i work with project thats need encrypt the data using md5 when insert the data to the database "i make this "but i need anthor thing i need when the user request the data from the database ,the data showen without md5 ??who i can make this ??matar Link to comment Share on other sites More sharing options...
aspnetguy Posted February 8, 2007 Share Posted February 8, 2007 once that data is encrypted you can't decrypt it.If you stored the MD5 password of "dog" you woun't check to see if the password == "dog" you would check password == md5("dog") Link to comment Share on other sites More sharing options...
Matar Posted February 8, 2007 Author Share Posted February 8, 2007 hi man no i dont mean that if i save md5("dog") in the database i want when the user request this value to show it without md5 encryption . thank you Link to comment Share on other sites More sharing options...
justsomeguy Posted February 8, 2007 Share Posted February 8, 2007 You cannot reverse MD5 encryption, it is not possible. MD5 and SHA-1 are one-way hashes. They are not decryptable. If you do find a way to decrypt your MD5 hash, several world governments would like to know how. Link to comment Share on other sites More sharing options...
Matar Posted February 8, 2007 Author Share Posted February 8, 2007 hi justsomeguy its long time so i must make an encryption algorithem and decryption algorithem ???!!!or what i can do to solve this problem ?anyway i need to save encrypted data and when request decrypte this data thank you matar Link to comment Share on other sites More sharing options...
justsomeguy Posted February 8, 2007 Share Posted February 8, 2007 There are several algorithms for doing encryption and decryption, MD5 is just not one of them. Check here:http://us3.php.net/manual/en/ref.mcrypt.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now