security

package
v0.0.0-...-32bdac0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoKeyErr = errors.New("No secret key found for the encryption")

Functions

func CheckPassword

func CheckPassword(password, hashedPassword string) bool

func Decrypt

func Decrypt(cipherData []byte) ([]byte, error)

func Encrypt

func Encrypt(data []byte) ([]byte, error)

Encryption/Decryption using AES Block cipher and Galois/Counter Mode

func HashPassword

func HashPassword(password string) (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