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

2005-11-19 Thread Markus Fischer
Hi, I'm missing the functionality to get a list of registered hash functions so one can probe whether a certain hash function is available or not. - Markus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-11-19 Thread Sara Golemon
I'm missing the functionality to get a list of registered hash functions so one can probe whether a certain hash function is available or not. There is now :) array hash_algos(void) Returns numerically indexed array of hashing engine names. And just incase anyone missed it. The proto for

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

2005-11-18 Thread Sara Golemon
Following an offline discussion with some internals folks, I've put together a general hashing extensions which could potentially find a place in core as an enabled by default extension: ext/hash: string hash(string $algo, string $value[,$raw=false]) string hash_file(string $algo, string