argon2

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT

README

Argon2 utils

About

Utils to encrypt passwords using argon2

Usage

Example
    func func main() {
        password := 'qwerty@123'
        hashedString, err := argon2_utils.HashStringArgon2(password)
        if err != nil {
            ...
        }
        match, err := argon2_utils.CompareStringToArgon2Hash(password, hashedString)
        if err != nil {
            ...
        }
        if !match {
            log.Println("passwords don't match")
        } else {
            log.Println("passwords match")
        }
    }

This package also contains a RandomString(int)(string,error) function.

Contributions

Euphoria Laxis GitHub

License

This project is under MIT License

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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