flix_is_here22 Posted May 11, 2012 Share Posted May 11, 2012 hi,i want to encrypt and decrypt the content of file. Now just i found the encrypt from http://www.w3schools.com/php/func_string_crypt.asp and that code work for mebut i didn't found the decrypt from w3schools....i found the decrypt tutor from http://www.php.net/manual/en/function.mcrypt-decrypt.phpbut i really don't understand.... anyone can you explain to me....???? 1 Link to comment Share on other sites More sharing options...
Ingolme Posted May 11, 2012 Share Posted May 11, 2012 The crypt() function is one-way encryption which is not meant to be decrypted. The mcrypt's decrypt() function is meant for a completely different thing. Encryption always involves an algorithm and a key, if not several keys. The mcrypt_decrypt() method is for decryptying data that was encrypted with this tunction: http://www.php.net/manual/en/function.mcrypt-encrypt.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