Bug #51255 [Opn->Csd]: crypt() example for SHA512 is wrong

From: Date: Wed, 10 Mar 2010 07:37:43 +0000
Subject: Bug #51255 [Opn->Csd]: crypt() example for SHA512 is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4029@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51255&edit=1 ID: 51255 Updated by: aharvey@php.net Reported by: ondrej at sury dot org Summary: crypt() example for SHA512 is wrong -Status: Open +Status: Closed Type: Bug Package: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant -Assigned To: +Assigned To: aharvey New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-03-10 08:37:24] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=296019 Log: Fixed bug #51255 (crypt() example for SHA512 is wrong). ------------------------------------------------------------------------ [2010-03-10 08:26:40] ondrej at sury dot org Description: ------------ crypt() example has copy&paste bug - salt used for SHA512 was copied from SHA256 and not changed to $6$, hence example script will generate SHA256 instead of SHA512. Expected result: ---------------- Standard DES: rl.3StKT.4T8M Extended DES: _J9..rasmBYk8r9AiWNc MD5: $1$rasmusle$rISCgZzpwk3UhDidwXvin0 Blowfish: $2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi SHA-256: $5$rounds=5000$usesomesillystri$KqJWpanXZHKq2BOB43TSaYhEWsQ1Lr5QNyPCDH/Tp.6 SHA-512: $6$rounds=5000$usesomesillystri$D4IrlXatmP7rx3P3InaxBeoomnAihCKRVQP22JZ6EY47Wc6Bk roIuUUBOov1i.S5KPgErtP/EN5mcO.ChWQW21 Actual result: -------------- Standard DES: rl.3StKT.4T8M Extended DES: _J9..rasmBYk8r9AiWNc MD5: $1$rasmusle$rISCgZzpwk3UhDidwXvin0 Blowfish: $2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi SHA-256: $5$rounds=5000$usesomesillystri$KqJWpanXZHKq2BOB43TSaYhEWsQ1Lr5QNyPCDH/Tp.6 SHA-512: $5$rounds=5000$usesomesillystri$KqJWpanXZHKq2BOB43TSaYhEWsQ1Lr5QNyPCDH/Tp.6 SHA-512: ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51255&edit=1

« previous php.doc.bugs (#4029) next »