Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Encrypt / Decrypt Between Android and PHP
- This is the code in Android (Java) and PHP to encrypt and decrypt Strings
- HOW TO USE IT (JAVA)
- mcrypt = new MCrypt();
- /* Encrypt */
- String encrypted = MCrypt.bytesToHex( mcrypt.encrypt("Text to Encrypt") );
- /* Decrypt */
- String decrypted = new String( mcrypt.decrypt( encrypted ) );
- HOW TO USE IT (PHP)
- $mcrypt = new MCrypt();
- #Encrypt
- $encrypted = $mcrypt->encrypt("Text to encrypt");
- #Decrypt
- $decrypted = $mcrypt->decrypt($encrypted);
- download from here :
- http://ellevolaw.com/2ZjJ
- or here:
- http://up-4ever.org/d/B3lv
- or here :HTML code
- <a href="https://www.up-4ever.org/ri3sbuvu40ua" target=_blank>New Text Document (2).txt - 7 KB</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement