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

php 和 java共用的加密方法

WBOY
WBOY原創
2016-06-06 19:59:041216瀏覽

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