authLogic

package
v0.0.0-...-ff4890a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogic

func NewLogic(ctx *gin.Context) *logic

func RsaDecrypt

func RsaDecrypt(ciphertext, keyBytes []byte) []byte

私钥解密

func RsaEncrypt

func RsaEncrypt(data, keyBytes []byte) []byte

公钥加密

func RsaSignWithSha256

func RsaSignWithSha256(data []byte, keyBytes []byte) []byte

签名

func RsaVerySignWithSha256

func RsaVerySignWithSha256(data, signData, keyBytes []byte) bool

验证

Types

This section is empty.

Jump to

Keyboard shortcuts

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