1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-27 09:12:15 +01:00
Commit Graph

60 Commits

Author SHA1 Message Date
Christoph M. Becker
2526581912 The salt is no longer optional as of PHP 8.0.0
Cf. <https://github.com/php/doc-en/issues/1752#issuecomment-1216980812>.
2022-08-16 20:11:42 +02:00
Christoph M. Becker
cbc23f1a74 Fix GH-1752: crypt() update docs wrt. no longer optional $salt 2022-08-16 20:07:30 +02:00
Kamil Tekiela
f7f0e997b5 Remove old crypt bug info (#1667) 2022-06-30 14:20:07 +01:00
Steve Thomas
f93ab9943c password_verify is capable of verifying crypt hashes
Closes GH-1424.
2022-02-22 17:15:50 +01:00
Christoph M. Becker
98ba3bd97a Fix #1328: bcrypt max password length is about bytes, not characters 2022-01-14 13:45:21 +01:00
Máté Kocsis
5453bb7d88 Generate string methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-265.
2021-01-02 01:19:41 +01:00
Christoph M. Becker
b2a1cefc64 Remove obsolete PHP 5 info in crypt() docs 2021-01-02 01:15:51 +01:00
Christoph Michael Becker
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
82dfa0d98d Fix #61888: crypt() should be documented as not binary safe
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346579 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-09 18:00:01 +00:00
Christoph Michael Becker
88560fa036 Fix #74202: However, crypt() creates a weak password without the salt.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342072 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-10 18:40:50 +00:00
Christoph Michael Becker
a706ea6af5 fixed typos, grammar, expression
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336939 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-13 22:22:45 +00:00
Adam Harvey
9e898bb9ca I parenthesis good.
Fixes doc bug #69157 (typo).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336026 c90b9560-bf6c-de11-be94-00142212c4b1
2015-03-02 18:04:08 +00:00
Adam Harvey
20d255c120 Added changelog notes for a BC break to undocumented crypt() behaviour.
Nobody should be relying on this anyway, but since Horde apparently was...


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335700 c90b9560-bf6c-de11-be94-00142212c4b1
2015-01-08 19:26:09 +00:00
Jean-Sebastien Hedde
204bc2974d Anonymous contributions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335457 c90b9560-bf6c-de11-be94-00142212c4b1
2014-12-29 12:49:12 +00:00
Adam Harvey
b0f439fdc0 Suggest hash_equals() on the crypt() page.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334629 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-28 03:45:57 +00:00
Anthony Ferrara
925468837b Revert 334297 and 334297, as:
1) there was no discussion prior to edits (even in #66564)
2) It is incorrect, misleading and not the overall sentiment that needs to be communicated

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334309 c90b9560-bf6c-de11-be94-00142212c4b1
2014-07-17 22:14:11 +00:00
Yasuo Ohgaki
d2940da2ef Add note for crypt()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334296 c90b9560-bf6c-de11-be94-00142212c4b1
2014-07-17 01:20:14 +00:00
Ferenc Kovacs
3fb1e0bf88 removing the misleading sentence (reported by Solar Designer, also pointed out by Michal Špaček previously in a comment for #66564)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333973 c90b9560-bf6c-de11-be94-00142212c4b1
2014-06-27 15:00:47 +00:00
Sherif Ramadan
824b84746c Add cautionary statement about truncation for crypt and password_hash using BCRYPT. Fixes Bug #66564.
This includes a cautionary statement that the CRYPT_BLOWFISH algorithm in crypt/password_hash functions
will truncate the input string at a maxmimum length of 72 characters. Typically not a problem for the
average use case since this is only likely used for passwords and assuming each hash has a unique salt.
However, it's still a good idea to document this behavior so that users are aware of the side effect.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332747 c90b9560-bf6c-de11-be94-00142212c4b1
2014-01-28 13:10:21 +00:00
Yasuo Ohgaki
c2d7a762b1 Update crypt() manual page for 5.6.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332022 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-30 22:13:59 +00:00
Justin Martin
c6e10c6653 Clarified language of CRYPT_BLOWFISH character range admonition.
Contribution by Ole Aass.
Closes bug #63755.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329093 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-12 04:04:32 +00:00
Joey Smith
54bcc14fac Clarified some common confusion in the crypt() examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326912 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-01 01:48:12 +00:00
Adam Harvey
d0223af67d Fix doc bug #62414 (Out of date docs for CRYPT_BLOWFISH). I'd greatly
appreciate a review on this, since I'm not sure it's as well worded or laid out
as it could be -- the one paragraph per hash convention is starting to get a
little tight.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326725 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-20 08:39:55 +00:00
Joey Smith
55d88a8d9c Remove the term 'base64' from the crypt page - it seems to be perpetually confusing people that they can somehow pass in base64_encoded() data.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313299 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-16 22:20:46 +00:00
Joey Smith
1f89edc4c6 Fixed awkward wording of a sentence in crypt() documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312628 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-29 15:16:48 +00:00
Shein Alexey
5e23e0807d Fixed a typo in Blowfish's salt description (should contain 22 base64 digits/items).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@309683 c90b9560-bf6c-de11-be94-00142212c4b1
2011-03-25 09:53:53 +00:00
Adam Harvey
ab5351a260 WS.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@300332 c90b9560-bf6c-de11-be94-00142212c4b1
2010-06-10 02:59:05 +00:00
Joey Smith
16f0f78d84 Clarify what appears to some to be a set of mutually exclusive assertions
by just pointing out that it's implementation-specific.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@300331 c90b9560-bf6c-de11-be94-00142212c4b1
2010-06-09 21:09:30 +00:00
Joey Smith
957d01e350 Clarified / fix docs of several instances where crypt() can be passed an invalid salt.
Added a ChangeLog entry for one trivial BC change in 5.3.2

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297172 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-30 11:42:08 +00:00
Daniel Egeberg
96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Adam Harvey
42e8f18733 Fixed bug #51255 (crypt() example for SHA512 is wrong).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@296019 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-10 07:37:22 +00:00
Yannick Torres
040a08b2af Fix WS & remove tab
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295563 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-27 09:01:19 +00:00
Joey Smith
632421687b - Document what PHP's crypt() does when underlying crypt() fails.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295442 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-23 22:08:17 +00:00
Joey Smith
026bae616b Replace usage of the term 'encryption' with 'hash' on
crypt() page.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295299 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-21 03:56:09 +00:00
Joey Smith
3087f7de70 Merge changes suggested by Solar Designer to clarify
how EDES and Blowfish salts work.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295298 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-21 03:32:45 +00:00
Joey Smith
3e33a8d374 Clarification on the salt format for Extended DES
via pajoye and Solar Designer.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295263 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-19 20:24:23 +00:00
Joey Smith
f8e3f4345b Current blowfish implementation is limited to 2**4-2**31, according to
Solar Designer.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295224 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-18 00:10:10 +00:00
Joey Smith
a0ccfd74cb Note how to trigger Extended DES, and the acceptable
alphabet for salt characters.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295196 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-17 06:32:47 +00:00
Joey Smith
62c1bb2619 Further refine the Blowfish documentation - what characters are allowed in the salt,
what crypt() does if invalid characters are used, the valid number of rounds, what
happens if you specify an invalid number of rounds.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295180 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-16 17:41:49 +00:00
Joey Smith
a3e8136e4e 1) Fix the current Blowfish documentation. It was pretty horribly wrong, which Solar Designer pointed out to us quite a while back [1]. I more or less copied the way the Perl package Crypt::Eksblowfish::Bcrypt documents it, with a few modifications to make it fit better with how PHP uses it.
2) Document the new (as of 5.3.2) CRYPT_SHA_256 and CRYPT_SHA_512 constants (and the salt format that goes with them), as well as include the examples.

[1] http://markmail.org/message/k3tzsrahlketfj5K



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295093 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-15 12:13:37 +00:00
Joey Smith
316087ba95 Clear up a confusing example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290071 c90b9560-bf6c-de11-be94-00142212c4b1
2009-10-30 03:12:18 +00:00
Torben Wilson
af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Nilgün Belma Bugüner
ed67b3c502 fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283839 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 09:08:43 +00:00
Carola 'Sammy' Kummert
7d16e320ce typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@271522 c90b9560-bf6c-de11-be94-00142212c4b1
2008-12-18 19:25:14 +00:00
Kalle Sommer Nielsen
b40758f015 * Added note + changelog entry for PHP's implementation of crypt() algorithms
* Added note about get_cfg_var() was fixed to return "array" ini options


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@271108 c90b9560-bf6c-de11-be94-00142212c4b1
2008-12-13 02:06:34 +00:00
Hannes Magnusson
c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Hannes Magnusson
cb3e0bc8d9 typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237417 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-11 14:39:35 +00:00
Mehdi Achour
c7d32a20aa ref.strings (a* => c*): Switch to new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237388 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-11 00:50:48 +00:00
Mehdi Achour
a988f7effc WS, prepare for new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237386 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-11 00:50:00 +00:00
Kenneth Schwartz
d259129bb0 use example.outputs[.similar] entity
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181877 c90b9560-bf6c-de11-be94-00142212c4b1
2005-03-11 16:11:52 +00:00