mini\Util\MachineSalt class

Documentation

Generate a stable, machine-specific salt for cryptographic operations

Combines system fingerprint with a persistent random salt for zero-config security. The salt remains stable across requests and PHP restarts but is unique per machine.

Used as fallback when MINI_SALT environment variable is not set.

Methods (3)

Get the machine salt (cached in memory after first call)

Generate system fingerprint from stable machine characteristics

Get or create persistent random salt in temp directory

Source

src/Util/MachineSalt.php:13-71