password

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package password hashes and verifies passwords with argon2id.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(pw string) (string, error)

Hash derives an argon2id hash of pw in the standard PHC string format.

func Verify

func Verify(pw, encoded string) bool

Verify reports whether pw matches the encoded argon2id hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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