The official website has a warning: This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.
So what function is used for encryption and decryption?
人生最曼妙的风景,竟是内心的淡定与从容!
openssl_encryptopenssl_decrypt
>>> openssl_encrypt("1", "aes-256-cbc", "12312321", 0, "1234123443212345"); => "x6Zfu2cbtbMDfkt2s/GE2A==" >>> openssl_decrypt("x6Zfu2cbtbMDfkt2s/GE2A==", "aes-256-cbc", "12312321", 0, "1234123443212345"); => "1"
Also see How do you Encrypt and Decrypt a PHP String?
password_hashpassword_verify
What about hash encryption?
Asymmetric encryption, RSA.
openssl_encrypt
openssl_decrypt
Also see How do you Encrypt and Decrypt a PHP String?
password_hash
password_verify
What about hash encryption?
Asymmetric encryption, RSA.