Hashing

Koselig exposes a Hasher implementation that uses WordPress' underlying hashing functions. It is available using the WPHash facade.

Examples

// hash the given value
WPHash::make($password);

// check if the given input matches the hash
WPHash::check($_POST['password'], $hashedPasswordFromDb);

// checks if the given password is an old WordPress MD5 hash
WPHash::needsRehash($dbPassword);