Documentation
¶
Overview ¶
Package valid
Index ¶
- func GenRsaKey(bits int, pubWt io.Writer, prvWt io.Writer) error
- func RsaDecrypt(ciphertext, keyBytes []byte) ([]byte, error)
- func RsaEncrypt(data, keyBytes []byte) ([]byte, error)
- func RsaSignWithSha256(data []byte, keyBytes []byte) ([]byte, error)
- func RsaVerySignWithSha256(data, signData, keyBytes []byte) bool
- type CustomClaims
- type JwtWithRsa
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct {
Stash map[string]string
jwt.StandardClaims
}
func (*CustomClaims) SetStash ¶
func (s *CustomClaims) SetStash(stash map[string]string)
type JwtWithRsa ¶
Click to show internal directories.
Click to hide internal directories.