2013年12月27日

PHP之open_ssl

摘要: http://www.wapm.cn/phpdoc/zh/openssl.installation.htmlhttp://liuxufei.com/weblog/jishu/376.htmldemo:http://tiandiou.blog.163.com/blog/static/2355668220106108342139/http://www.alixixi.com/program/a/2008050731975.shtml 阅读全文

posted @ 2013-12-27 19:42 andydaopeng 阅读(137) 评论(0) 推荐(0) 编辑

加密解密知识 php非对称加密

摘要: function test1(){ $config = array( "digest_alg" => "sha1", "private_key_bits" => 1024, "private_key_type" => OPENSSL_KEYTYPE_RSA, "encrypt_key" => false ); $res = openssl_pkey_new($config); openssl_pkey_export($res, $priKey); //获取私钥$priKe 阅读全文

posted @ 2013-12-27 17:22 andydaopeng 阅读(942) 评论(0) 推荐(0) 编辑

导航