PHP RSA 공개키 암호화 알고리즘 - PHP 구현[2]

황제낙엽 2007.09.27 11:20 조회 수 : 393 추천:110

sitelink1  
sitelink2  
sitelink3 http://1 
sitelink4 http://ko 
extra_vars5 http://pear.php.net/package/Crypt_RSA/downloadhttp://pear.php.net/package/Crypt_RSA/docs/1.0.0RC6/li_Crypt_RSA.html 
extra_vars6 sitelink1 
Release date: 2006-02-28 21:20 UTC
Release state: beta

Changelog:

* added toPEMString() function in Crypt_RSA_KeyPair class. It allows to store keypair in .pem file as RSA private key
* added isEqual() function in Crypt_RSA_KeyPair class. It returns true if two keypairs are equal
* added mod() and isPrime() functions to math wrappers interface
* fixed bug in getPrime() function of GMP and BCMath math wrappers, which hangs up key generating process
* added optional $random_generator parameter to Crypt_RSA_KeyPair constructor and factory() method
* added benchmark in tests/bench.php, which clearly shows performance of different math wrappers (GMP, BigInt, BCMath). In short: GMP is 5 times faster than BigInt, BCMath is 50 times slower than BigInt.

Dependencies:
  • PHP Extension: bcmath (optional)
  • PHP Extension: gmp (optional)
  • PEAR Package: big_int 1.0.3 or newer (optional)