utils

package
v0.0.0-...-006e77a Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES_GCM_Decrypt

func AES_GCM_Decrypt(secret, value string) (string, error)

func AES_GCM_Encrypt

func AES_GCM_Encrypt(secret, value string) (string, error)

Another unsafe implementation (Don't do this by yourself)

func GenerateSalt

func GenerateSalt(saltSize int) ([]byte, error)

func HashPassword

func HashPassword(password string, salt []byte) (string, error)

Don't use a manual hashing method (It's not safe). Instead, use something like bcrypt

Types

This section is empty.

Jump to

Keyboard shortcuts

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