Skip to content

Files

Latest commit

 

History

History
29 lines (19 loc) · 1015 Bytes

Generic.PHP.DeprecatedFunctions.md

File metadata and controls

29 lines (19 loc) · 1015 Bytes

Pattern: Use of deprecated function

Issue: -

Description

Deprecated APIs should be avoided, and usage updated.

Examples

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);

Further Reading