我正在使用PHP的OpenSSL模块进行非对称加密; openssl_pkey_new(),openssl_pkey_export()和openssl_pkey_get_details()用于创建密钥对,openssl_public_encrypt和openssl_private_decrypt()用于加密和解密数据.
如何更改与私钥关联的密码?这可能是OpenSSL模块,还是我必须创建一个新的密钥对?这将非常不方便,并要求服务器在常规基础上重新加密可能的数千个文件.
谢谢!
php encryption openssl encryption-asymmetric public-key-encryption