Documentation
¶
Index ¶
- Variables
- func BytesToPrivateKey(b []byte) (crypto.PublicKey, jose.SignatureAlgorithm, error)
- func DecryptAES(data string, key string) (string, error)
- func DecryptBytesAES(cipherText []byte, key string) ([]byte, error)
- func EncryptAES(data string, key string) (string, error)
- func EncryptBytesAES(plainText []byte, key string) ([]byte, error)
- func GetHashAlgorithm(sigAlgorithm jose.SignatureAlgorithm) (hash.Hash, error)
- func HashString(hash hash.Hash, s string, firstHalf bool) string
- func Sign(object any, signer jose.Signer) (string, error)
- func SignPayload(payload []byte, signer jose.Signer) (string, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BytesToPrivateKey ¶
Types ¶
This section is empty.
Source Files
¶
- crypto.go
- hash.go
- key.go
- sign.go
Click to show internal directories.
Click to hide internal directories.