password

package
v0.0.0-...-36ceb7c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcryptComparePassword

func BcryptComparePassword(hashedPassword string, password string) error

BcryptComparePassword 判断密码是否正确 hashedPassword 加密密码 password 原始密码

func BcryptHashPassword

func BcryptHashPassword(password string) (string, error)

BcryptHashPassword bcrypt 加密 password 原始密码

func ScryptComparePassword

func ScryptComparePassword(storedPassword string, suppliedPassword string) error

ScryptComparePassword 判断密码是否正确 storedPassword 加密密码 suppliedPassword 原始密码

func ScryptHashPassword

func ScryptHashPassword(password string) (string, error)

ScryptHashPassword scrypt 加密 password 原始密码

Types

This section is empty.

Jump to

Keyboard shortcuts

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