utils

package
v0.0.0-...-8c4fe33 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

@Author: Ciusyan 2023/1/30

@Author: Ciusyan 2023/2/6

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcryptHash

func BcryptHash(data any) string

BcryptHash Bcrypt 将敏感数据做强类型慢速哈希

func GetToken

func GetToken(ctx *gin.Context) string

GetToken 从gin的Ctx种获取Token

func MakeBearer

func MakeBearer(length int) string

MakeBearer 生成Base64的字符串

func Md5Hash

func Md5Hash(data any) string

Md5Hash 对不敏感数据做快速 Hash

func VerifyBcryptHash

func VerifyBcryptHash(data any, hash string) bool

VerifyBcryptHash 验证 BcryptHash

func VerifyMd5Hash

func VerifyMd5Hash(data any, hash string) bool

VerifyMd5Hash 验证 Md5Hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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