PHP无法安装OpenSSL,需要使用密码加密文件
一位客户要求我创建一个用密码加密文件的脚本,我使用OpenSSL编写了一个脚本 详情如下:PHP无法安装OpenSSL,需要使用密码加密文件,php,openssl,Php,Openssl,一位客户要求我创建一个用密码加密文件的脚本,我使用OpenSSL编写了一个脚本 详情如下: $this->salt = openssl_random_pseudo_bytes(10); $this->cryptoKey = openssl_pbkdf2($key, $this->salt, $this->cryptoKeyLength, $this->iterations, $this->algorithm);
$this->salt = openssl_random_pseudo_bytes(10);
$this->cryptoKey = openssl_pbkdf2($key, $this->salt, $this->cryptoKeyLength, $this->iterations,
$this->algorithm);
$this->iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($this->cipher));
问题是,客户没有openssl,并且主机没有为用户提供足够的权限来使用yum-i-get安装php openssl,因为我没有足够的权限。
该网站有https-tho
还有其他库可供使用吗?
有没有一种方法可以将openssl用作类并包含is as.php?
还有其他类似的函数吗?
是否有一种更弱的方法可以在本地实现同样的效果?
谢谢
是否可以在另一台机器上安装php并将请求作为代理传递并返回输出,这是一种明智的解决方法?phpseclib有纯php加密实现,据我所知,phpseclib有纯php加密实现,据我所知