php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54568 [DE] German crypt() documentation incomplete
Submitted: 2011-04-19 14:39 UTC Modified: 2011-06-30 08:19 UTC
From: debian at michael-neubert dot de Assigned: nikic (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2011-04-19 14:39 UTC] debian at michael-neubert dot de
Description:
------------
Hello,

the German documentation of the crypt() function is inconsistent.

English documentation parameter salt:

"An optional salt string to base the hashing on. If not provided, the behaviour is defined by the algorithm implementation and can lead to unexpected results."

German documentation parameter salt:

"Ein optionaler Salt-String, der die Schlüsselbasis bildet. Sofern nicht angegeben, wird von PHP ein zufälliger Wert bei jedem Aufruf der Funktion generiert. Wenn Sie das gegebene Salt benutzen, sollten Sie beachten, dass dieser Wert nur einmal bestimmt wird. Rufen Sie diese Funktion nun mehrmals auf, beeinträchtigt das nicht nur das Ergebnis, sondern unter Umständen auch die Sicherheit."

Please add in the German documentation, that unexpected results can occur, if no salt is provided. Further information why this is advisably you can find in the following Debian bugreport:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623220

Beste wishes
Michael


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-09 22:44 UTC] yannick@php.net
-Summary: German crypt() documentation incomplete +Summary: [DE] German crypt() documentation incomplete
 [2011-06-30 01:08 UTC] philip@php.net
The online documentation editor link relevant to this bug report:
https://edit.php.net/?project=PHP&perm=de/function.crypt.php
 [2011-06-30 08:19 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2011-06-30 08:19 UTC] nikic@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Just asked someone and it seems this is just badly formulated: The behavior is clearly defined (i.e. first MD5 hashing is tried and then DES). By unexpected behavior they mean that if one server has MD5 and the other DES, running the same function with the same input will yield two different outputs. Thus it could seem that the provided password was wrong.

I updated the german docs to clarify that.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 10:01:30 2024 UTC