Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (44 sloc) 1.98 KB
Grøstl hash function for PHP
Version 0.1
Grøstl is a new cryptographic hash function designed in response to the
Cryptographic Hash Algorithm Competition announced by NIST. Grøstl is one of
the five finalists in the competition and it is a tweaked version of its
predecessor called Grøstl-0, the original submission to the competition.
The author of this extension was in no way involved in the development of the
Grøstl hash function. The hash source code was taken directly from NIST
submission package with a few minor variable name changes so that it would play
nice with PHP.
See the CREDITS section for more details.
You'll need to have the PHP 5 development package and a working build
environment to compile this module.
To compile and install:
./configure --enable-groestl
sudo make install
Then add the following to your php.ini file:
Function Description:
string groestl_hash(string $string [, int bit_length = 512])
// Build a base-64 encoded hash
$hash = base64_encode(groestl_hash('Hello, world.'));
The Grøstl team: Søren Steffen Thomsen, Martin Schläffer, Christian Rechberger,
Florian Mendel, Krystian Matusiewicz, Lars R. Knudsen, Praveen Gauravaram
PHP extension written by Bryan C. Geraghty <>
For more details, see:
The SHA-3 Submission Requirements states:
"Each submitted algorithm must be available worldwide on a royalty free
basis during the period of the hash function competition."
If the algorithm is selected as the winner of the competition, the following
"an irrevocable nonexclusive royalty-free license to practice the referenced
algorithm, reference implementation or the optimized implementations"
If the algorithm is not selected as the winner, the license will be determined
by the team.
Something went wrong with that request. Please try again.