0

Have just upgraded from PHP 7.0 to PHP 7.3 and now this function is removed.. Are there any alternatives?

$salt = base64_encode(mcrypt_create_iv(24, MCRYPT_DEV_URANDOM));
clarkk
  • 27,151
  • 72
  • 200
  • 340
  • 1
    A simple search of the manual should answer your query. If the manual does not answer your quest you need to state that and why it's missed your aim. Thanks – Martin May 09 '19 at 21:38
  • Also judging from your own code sample; if you're generating your own encryption salt, you're very, very, **very** probably creating encrypted data *the wrong way*. Therefore making it less secure and far more open to compromise. – Martin May 09 '19 at 21:56
  • ** hashing salt not encryption salt in my above comment. An encryption salt is a *key*. ^^ – Martin May 09 '19 at 22:04

1 Answers1

0

From the documentation for that function:

Alternatives to this function include: