Pattern: Use of deprecated function
Issue: -
Deprecated APIs should be avoided, and usage updated.
Example of incorrect code:
$original_plaintext = mcrypt_decrypt("rijndael-128", $key, $ciphertext, MCRYPT_MODE_CBC, $iv)
Example of possible correct code:
$original_plaintext = openssl_decrypt($ciphertext, "aes-128-gcm", $key, $options=0, $iv, $tag);