【发布时间】:2016-10-08 17:40:13
【问题描述】:
我可以很好地生成所有密钥,当我去加密文件时,我收到一个错误:error:0E06D06C:configuration file routines:NCONF_get_string:no value 但谷歌搜索和检查 stackoverflow 只会显示生成密钥有问题的人。
我的代码:Here
编辑:当我将or die(openssl_error_string()); 放在openssl_private_encrypt($fileToEnc, $encFile, $privateKey) 之后时弹出错误,但我现在得到fwrite() expects parameter 1 to be resource, boolean given in C:\wamp\www\xr1\encrypt.php on line 9
【问题讨论】:
-
请提供相关代码。请务必说明问题发生的位置以及确切的错误消息。
-
每当我这样做时,标签都会弄乱格式^^^
标签: php encryption php-openssl