Skip to content

Instantly share code, notes, and snippets.

View GrmpCerber's full-sized avatar

Thomas GrmpCerber

  • Worldline
  • Seclin
View GitHub Profile
@rsky
rsky / pbkdf2.php
Last active September 19, 2019 05:04
A hash_pbkdf2() implementation for PHP versions 5.3 and 5.4.
<?php
/**
* Generate a PBKDF2 key derivation of a supplied password
*
* This is a hash_pbkdf2() implementation for PHP versions 5.3 and 5.4.
* @link http://www.php.net/manual/en/function.hash-pbkdf2.php
*
* @param string $algo
* @param string $password