PHP 8.4.0 RC4 available for testing

The Random\Engine\Secure class

(PHP 8 >= 8.2.0)

Einführung

Generates cryptographically secure randomness using the operating system’s CSPRNG.

The randomness generated by this Random\Engine is suitable for all applications, including the generation of long-term secrets, such as encryption keys.

The Random\Engine\Secure engine is the recommended safe default choice, unless the application requires either reproducible sequences or very high performance.

Klassenbeschreibung

final class Random\Engine\Secure implements Random\CryptoSafeEngine {
/* Methoden */
public generate(): string
}

Inhaltsverzeichnis

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top