Skip to content

serpro/Android-PHP-Encrypt-Decrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Android-PHP-Encrypt-Decrypt

Encrypt / Decrypt Between Android and PHP and vice-versa

HOW TO USE IT (JAVA)

MCrypt 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);

About

Encrypt / Decrypt Between Android and PHP and vice-versa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published