I couldn’t find enough resource about this subject and i need to learn how can i encrypt and decrypt file using TripleDes in PHP (while uploading it should encrypt the file and while downloading the file it should decrypt).
Also i found some examples but i couldn’t implement it
http://php.net/manual/en/mcrypt.examples.php
http://stackoverflow.com/questions/10548386/issue-with-encrypt-and-decrypt-a-word-docx-file-in-php
Thanks for your interests.
You can use this code to encrypt a string:
And this to decrypt it: