yeeCrypto

package
v0.0.0-...-89bd919 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

yeeCrypto 用于hash加密的包 依赖: "golang.org/x/crypto/bcrypt"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(hash, password []byte) error

CheckPasswordHash 加密后的密码的校验

func HashPassword

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

HashPassword 密码加密

func Md5Hex

func Md5Hex(data []byte) string

Md5Hex 小写hex

func Sha256Hex

func Sha256Hex(data []byte) string

Sha256Hex

func Sha512Hex

func Sha512Hex(data []byte) string

Sha512Hex

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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