crypto

package
v2.8.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package crypto provides cryptographic utilities for password hashing and verification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(hash, password string) bool

CheckPasswordHash verifies if the given password matches the bcrypt hash.

func HashPasswordAsBcrypt

func HashPasswordAsBcrypt(password string) (string, error)

HashPasswordAsBcrypt generates a bcrypt hash of the given password.

Types

This section is empty.

Jump to

Keyboard shortcuts

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