openssl_decrypt tag value
问题 I'm using the openssl_encrypt / decrypt method in my website but i'm having some troubles with the $tag option openssl_encrypt ( $data, $method, $key, $options, $iv, $tag ) openssl_decrypt ( $data, $method, $key, $options, $iv, $tag ) from http://php.net/manual/en/function.openssl-encrypt.php, the definition of tag is: The authentication tag passed by reference when using AEAD cipher mode (GCM or CCM). But i didn't understand it. I tried it in my codes $data = "text to be encrypted"; $cipher