Documentation ¶
Index ¶
- func GetJwtPrivateKey() *ecdsa.PrivateKey
- func GetJwtPrivateKeyContent() string
- func GetJwtPublicKey() *ecdsa.PublicKey
- func GetJwtPublicKeyContent() string
- func GetRsaPrivateKey() *rsa.PrivateKey
- func GetRsaPrivateKeyContent() string
- func GetRsaPublicKey() *rsa.PublicKey
- func GetRsaPublicKeyContent() string
- func InitEncodingKeys()
- func ReInitEncodingKeys()
- func RsaDecrypt(plain string) (string, error)
- func RsaEncrypt(plain string) (string, error)
- func Sha256Encrypt(plain string) string
- func SignJwt(ctx context.Context, m map[string]any) (string, error)
- func UnpackJwt(content string) (map[string]any, error)
- func VerifyJwt(content string) (bool, error)
- type JwtConfig
- type JwtKeys
- type RsaConfig
- type RsaKeys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJwtPrivateKey ¶
func GetJwtPrivateKey() *ecdsa.PrivateKey
func GetJwtPrivateKeyContent ¶
func GetJwtPrivateKeyContent() string
func GetJwtPublicKey ¶
func GetJwtPublicKeyContent ¶
func GetJwtPublicKeyContent() string
func GetRsaPrivateKey ¶
func GetRsaPrivateKey() *rsa.PrivateKey
func GetRsaPrivateKeyContent ¶
func GetRsaPrivateKeyContent() string
func GetRsaPublicKey ¶
func GetRsaPublicKeyContent ¶
func GetRsaPublicKeyContent() string
func InitEncodingKeys ¶
func InitEncodingKeys()
func ReInitEncodingKeys ¶
func ReInitEncodingKeys()
func RsaDecrypt ¶
func RsaEncrypt ¶
func Sha256Encrypt ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.