security

package
v0.0.0-...-83c1a15 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptPlainPassword

func EncryptPlainPassword(userName, plainPwd string) string

EncryptPlainPassword 加密明文密码

func GenerateCommitName

func GenerateCommitName(userName, RepositoryName string) string

func GenerateNextPageToken

func GenerateNextPageToken(lastPageOffset, lastPageSize, lastDataLength int) (string, error)

func GenerateToken

func GenerateToken(username, note string) string

GenerateToken 生成token

Types

type PageTokenChaim

type PageTokenChaim struct {
	PageOffset int
	jwt.RegisteredClaims
}

func ParsePageToken

func ParsePageToken(tokenString string) (*PageTokenChaim, error)

Jump to

Keyboard shortcuts

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