PHPGangsta / GoogleAuthenticator

PHP class to generate and verify Google Authenticator 2-factor authentication
http://phpgangsta.de/4376
BSD 2-Clause "Simplified" License
2.23k stars 689 forks source link

mcrypt_create_iv deprecated #79

Closed On1ty closed 4 years ago

On1ty commented 4 years ago

how can I fix this function mcrypt_create_iv what is the alternative way?

egarcam commented 4 years ago

You can use: openssl_random_pseudo_bytes random_bytes

Depending of the PHP version that you use. All the mcrypt functions can be replaced with openssl and use the cipher and padding equivalent.

El jue., 2 jul. 2020, 10:32 p. m., wahanmig notifications@github.com escribió:

how can I fix this function mcrypt_create_iv what is the alternative way?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PHPGangsta/GoogleAuthenticator/issues/79, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABF7G5J3HT3XKAJLC4ASX4TRZVGMPANCNFSM4OPN45QQ .