Namespace

Runtime\PS\Crypto\Identifiers

Package crypto holds the password hashing and the random source a script cannot write for itself.

Description

Package crypto holds the password hashing and the random source a script cannot write for itself.

PHP's password_hash() is one of the few standard functions with no implementation in the language: it needs a key derivation function and a CSPRNG, and phpscript exposes neither. Everything else the family does (parsing options, choosing an algorithm) is arithmetic a script could do and the binding is narrow: the password functions here, and the CSPRNG pair in random.go, which returns the same entropy to scripts directly.

Package
stdlib/ps/cryptogodoc

Functions

A call writes the bare name or the name under this area: \Runtime\PS\Crypto\Identifiers\ulid().

See also