utils

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlgoStrTOAlgoEnum

func AlgoStrTOAlgoEnum(methodstr string) (jwt_pb.EncryptionAlgorithm, error)

AlgoStrTOAlgoEnum 加密算法名转化为算法枚举值

func IsAsymmetric

func IsAsymmetric(method jwt_pb.EncryptionAlgorithm) bool

IsAsymmetric 算法在非对称加密支持的算法范围

func IsEdDSA

func IsEdDSA(method jwt_pb.EncryptionAlgorithm) bool

IsEdDSA 判断文件是不是EdDSA方法加密

func IsEs

func IsEs(method jwt_pb.EncryptionAlgorithm) bool

IsEs 判断文件是不是ES方法加密

func IsRs

func IsRs(method jwt_pb.EncryptionAlgorithm) bool

IsRs 判断文件是不是RS方法加密

func IsSymmetric

func IsSymmetric(method jwt_pb.EncryptionAlgorithm) bool

IsSymmetric 算法在对称加密支持的算法范围

func LoadData

func LoadData(p string) ([]byte, error)

LoadData 读取并加载文件数据

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