和PHP7.1 mcrypt alternative 并测试了以下解决方案:Migrating mcrypt with Blowfish and ECB to OpenSSL和php: mcrypt_encryptto openssl_encrypt, and OPENSSL_ZERO_PADDING problems 他们不能工作。encrypted_mcrypt = mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $message, MCRYPT_MODE_ECB, $iv
我试图在我的服务器上创建一个UUID,出于某种原因,openssl_enrypt正在初始化一个空字符串。如果返回false,这将是一个不同的对话,但它不是,而是返回一个字符串,只是一个空的字符串。hash_hmac("sha512", "You can decrypt this all day long, won't get you closer to the truth", "myKey");$en
当我通过php运行openssl_encrypt ($string, $method, $pass);时,我可以运行它。但是,当我通过Apache http服务器运行它时,它会引发以下错误:
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt\lab.php:2 Stack trace: #0 {main} thrown in D:\...\lab.php on line 2