|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6812 crypt() function does not honour salt. Always return the same value.
Submitted: 2000-09-20 08:21 UTC Modified: 2000-11-03 12:23 UTC
From: johanp at aditus dot nu Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.2 OS: Linux 2.2.16
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
8 + 39 = ?
Subscribe to this entry?

 [2000-09-20 08:21 UTC] johanp at aditus dot nu
The following test demostrates the problem with crypt() function.



echo "orgstr=$orgstr, salt=$salt, cryptstr=$cryptstr<p>";


This will return the same $cryptstr whatever the salt is.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-21 08:11 UTC]
Please read again.
The salt string can be only 2-characters.

 [2000-11-03 12:23 UTC]
This is fixed was a bug after all.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 20:01:27 2019 UTC