Versions in this module Expand all Collapse all v0 v0.0.1 Sep 5, 2024 Changes in this version + 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 struct + PrivateKeyContent string + PublicKeyContent string + type JwtKeys struct + PrivateKey *ecdsa.PrivateKey + PublicKey *ecdsa.PublicKey + type RsaConfig struct + PrivateKey string + PublicKey string + type RsaKeys struct + PrivateKey *rsa.PrivateKey + PublicKey *rsa.PublicKey