Documentation ¶
Index ¶
- func Base32Decode(value string) ([]byte, error)
- func Base32Encode(value []byte) string
- func Base32NoPaddingDecode(value string) ([]byte, error)
- func Base64Decode(value string) ([]byte, error)
- func Base64Encode(value []byte) string
- func Base64NoPaddingDecode(value string) ([]byte, error)
- func Base64URLDecode(value string) ([]byte, error)
- func Base64URLEncode(value []byte) string
- func Base64URLNoPaddingDecode(value string) ([]byte, error)
- func CreateJWT(params JWTParams) (string, error)
- func Decrypt(value []byte, passPhrase []byte) ([]byte, error)
- func DecryptAndVerify(value []byte, passPhrase []byte, hash []byte) ([]byte, error)
- func Encrypt(value []byte, passPhrase []byte) ([]byte, error)
- func EncryptWithHash(value []byte, passPhrase []byte) ([]byte, []byte, error)
- func ExtractInfoFromJWT(jwtString string) (*jwt.StandardClaims, error)
- func GenerateQRCodeImage(data string, size int) ([]byte, error)
- func GetPrettyJSON(v interface{}) ([]byte, error)
- func MinifyJSON(str string) ([]byte, error)
- func NetworkContainsIP(network string, ip string) (bool, error)
- func ParseJWT(jwtString string, params JWTParams) (*jwt.StandardClaims, error)
- func PrettifyJSON(str string) ([]byte, error)
- func RandomBytes(length int) ([]byte, error)
- func ReadQRCodeImage(data []byte) (string, error)
- func Sha256Compare(value []byte, hash []byte) bool
- func Sha256Hash(value []byte) []byte
- func ValidJSON(str string) error
- func ValidateJWT(jwtString string, issuer string, secret []byte) error
- type JWTInfo
- type JWTParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base32Decode ¶
func Base32Encode ¶
func Base32NoPaddingDecode ¶
func Base64Decode ¶
func Base64Encode ¶
func Base64NoPaddingDecode ¶
func Base64URLDecode ¶
func Base64URLEncode ¶
func DecryptAndVerify ¶
func EncryptWithHash ¶
func ExtractInfoFromJWT ¶
func ExtractInfoFromJWT(jwtString string) (*jwt.StandardClaims, error)
func GenerateQRCodeImage ¶ added in v0.3.0
func GetPrettyJSON ¶
func MinifyJSON ¶
func PrettifyJSON ¶
func RandomBytes ¶
func ReadQRCodeImage ¶ added in v0.3.0
func Sha256Compare ¶
func Sha256Hash ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.