crypto

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package crypto holds the password hashing 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, so the binding is deliberately three functions wide and no wider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(rt *runner.Runtime)

Register installs the password hashing functions and their constants on rt.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL