API / Minn\Auth / Salts

Salts final class

Minn\Auth\Salts · public/minn/src/Minn/Auth/Salts.php · 41 lines

The site's own secret material, read from the constants wp-config.php defines, so the engine keys off exactly what the install used.

Constants and properties

privateSCHEMES = array ( 'logged_in' => array ( 0 => 'LOGGED_IN_KEY', 1 => 'LOGGED_IN_SALT', ), 'nonce' => array ( 0 => 'NONCE_KEY', 1 => 'NONCE_SALT', ), 'auth' => array ( 0 => 'AUTH_KEY', 1 => 'AUTH_SALT', ), 'secure_auth' => array ( 0 => 'SECURE_AUTH_KEY', 1 => 'SECURE_AUTH_SALT', ), )

Public

staticconfigured(): bool#

True when every key and salt is defined and none is the installer's placeholder.

staticknows(string $scheme): bool#

Whether a scheme has a key and salt of its own (auth, secure_auth, logged_in, nonce).

staticfor(string $scheme): string#

The key and salt of a scheme joined, as the reference feeds them to its HMACs.

statichash(string $data, string $scheme): string#

HMAC-md5 under the scheme's salt: the primitive every cookie and nonce is built from.