passutils

package
v0.0.0-...-a80e510 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordStrength

func CheckPasswordStrength(password string) error

func DecryptPassword

func DecryptPassword(encryptedPassword string, key []byte) (string, error)

func DeriveKey

func DeriveKey(password string) ([]byte, string, error)

func DeriveKeyWithSalt

func DeriveKeyWithSalt(password, saltHex string) ([]byte, error)

func EncryptPassword

func EncryptPassword(password string, key []byte) (string, error)

func GeneratePassword

func GeneratePassword(length int) (string, error)

func HashMasterPassword

func HashMasterPassword(password string) (string, error)

func ReadPassword

func ReadPassword(reader io.Reader) (string, error)

func VerifyMasterPassword

func VerifyMasterPassword(hashedPassword, password string) bool

Types

type PasswordStrengthError

type PasswordStrengthError struct{ Message string }

func (*PasswordStrengthError) Error

func (e *PasswordStrengthError) Error() string

Jump to

Keyboard shortcuts

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