Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] Re: sha256(), sha256_file(), and other hashing algos [RSS Feed]

#1 Nov. 18, 2005 19:53:27

Sara G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: sha256(), sha256_file(), and other hashing algos


> I'm just putting on some finishing touches and will post a tarball later
> today.
>
Meh... It'll be easier to discuss within CVS... It's in pecl/hash as of now.

-Sara

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 Nov. 18, 2005 20:28:02

Roman I.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: sha256(), sha256_file(), and other hashing algos


Sara Golemon wrote:string hash(string $algo, string $value)
string hash_file(string $algo, string $filename)Hm... hash(string $value])?

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#3 Nov. 18, 2005 20:56:27

Wez F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: sha256(), sha256_file(), and other hashing algos


Assuming that sha256 is always going to be the best default is pretty
short-sighted.

It's only a matter of time before that one is partially broken in some
way too; we won't be able to change the default value of the function
by then, because everyone using the default will have code that
depends on sha256, and voila, we've gotten locked into something that
might not be so desirable.

Default values should be avoided unless they're *always* going to make sense.

--Wez.

On 11/18/05, Roman Ivanov <> wrote:
> Sara Golemon wrote:
> > string hash(string $algo, string $value)
> > string hash_file(string $algo, string $filename)
>
> Hm... hash(string $value])?
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit:http://www.php.net/unsub.php>
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] Re: sha256(), sha256_file(), and other hashing algos [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support