Re: RFC proposal to deprecate crypt()

From: Date: Mon, 21 Feb 2022 17:35:33 +0000
Subject: Re: RFC proposal to deprecate crypt()
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-117107@lists.php.net to get a copy of this message
On Mon, 21 Feb 2022 at 16:44, <steve@tobtu.com> wrote: > If crypt() is removed [...] The only thing you lose is creating those bad > password hashes. That's not exactly fair, as noted by Tim, crypt() can be used for other software (e.g. Dovecot); and by Hans for modifying /etc/shadow. While I would warn most developers away from using crypt(), because it is dangerous, it can still be useful (dare I say it, md5, terrible idea, but sometimes you need it when integrating with other systems). Craig On Mon, 21 Feb 2022 at 10:11, Tim Düsterhus <tim@bastelstu.be> wrote: > crypt() allows one to interoperate with non-PHP-software that does not > support BCrypt, but supports the SHA-X variants. I already mentioned > Dovecot as an example. On Mon, 21 Feb 2022 at 12:04, Hans Henrik Bergan <divinity76@gmail.com> wrote: > script modifying a linux system's /etc/passwd / /etc/shadow using crypt() > because password_hash() couldn't create passwd/shadow-compatible hashes > while crypt() could

« previous php.internals (#117107) next »