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.
Used by 4
Constants and properties
| private | SCHEMES = 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
| static | configured(): bool# | True when every key and salt is defined and none is the installer's placeholder. |
| static | knows(string $scheme): bool# | Whether a scheme has a key and salt of its own (auth, secure_auth, logged_in, nonce). |
| static | for(string $scheme): string# | The key and salt of a scheme joined, as the reference feeds them to its HMACs. |
| static | hash(string $data, string $scheme): string# | HMAC-md5 under the scheme's salt: the primitive every cookie and nonce is built from. |
Nothing matches.