|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-21 18:30 UTC] sarciszewski at knights dot ucf dot edu
-Status: Open
+Status: Closed
[2013-02-21 18:30 UTC] sarciszewski at knights dot ucf dot edu
[2013-02-21 19:20 UTC] rasmus@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 05:00:01 2025 UTC |
Description: ------------ crypt() seems to be breaking for some reason with this password and salt combination I've not read anything about limitations on the characters supplied to crypt() in the PHP documentation Test script: --------------- <? $plain = "W9no`y_vr.!b<W'.Wp44NU~\"Vf}n{G077<^UnqFyWwKyaz1YuyrO9H+1/T8J3Ha_C|X=gU^?EBrc2"; $salt = '$2a$10$CqenGirJlEl6sCA2/w2ay'; echo crypt($pre, $salt); ?> Expected result: ---------------- $2a$10$CqenGirJlEl6sCA2/w2a (followed by hashed data) Actual result: -------------- *0