passwords

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

passwords

A module to make operations with passwords:

  • Hashing with salt.
  • Validate hashes.
  • Generate random strings to create a password or salt.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPw

func HashPw(pw, salt string) (string, error)

func RandASCIIString

func RandASCIIString(slen int) string

Generates a random ASCII (codes 32-126) string of the given length. Call to generate a password or salt.

func RandAlphanumericString

func RandAlphanumericString(slen int) string

Generates a random alphanumeric string of the given length. Call to generate a password or salt.

func ValidateHashPw

func ValidateHashPw(pw, salt, hash string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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