首页 >php教程 >php手册 >php 和 java共用的加密方法

php 和 java共用的加密方法

WBOY
WBOY原创
2016-06-06 19:59:041211浏览

http://www.php.net/manual/en/ref.mcrypt.php To have the same result in Java and PHP with the BouncyCastle library : php function encrypt($str, $operation, $key) { $ret = ''; $key = pack('H*', $key); if (strtoupper($operation) == 'DECODE')

 

http://www.php.net/manual/en/ref.mcrypt.php

To have the same result in Java and PHP with the BouncyCastle library :

 

 

php

 

 

java

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn