Documentation
¶
Index ¶
- func AccessId(id string, key string) string
- func AccessKey() string
- func AesDecrypt(text string, key string) (string, bool)
- func AesEncrypt(text string, key string) (string, bool)
- func Base64Decode(str string) string
- func Base64Encode(str string) string
- func CheckIPWhitelist(whitelist []string, addr string) bool
- func CheckId(s string) bool
- func GetBool(tree *toml.Tree, key string, values ...bool) bool
- func GetString(tree *toml.Tree, key string, values ...string) string
- func HS256(str string, key string) string
- func HS384(str string, key string) string
- func HS512(str string, key string) string
- func Hash(str string, config *toml.Tree, flag bool) string
- func Id() string
- func Integrity(value interface{}, config *toml.Tree) string
- func Key(phrase string) string
- func NormalizedId(id string) string
- func ParseString(value interface{}, values ...string) string
- func PrivatekeyEncodeString(key *rsa.PrivateKey) string
- func PublicKeyEncodeString(key *rsa.PublicKey) string
- func RsaDecrypt(text string, key *rsa.PrivateKey) (string, bool)
- func RsaEncrypt(text string, key *rsa.PublicKey) (string, bool)
- func Sha256(str string) string
- func Sha384(str string) string
- func Sha512(str string) string
- func Signature(signature string, digest string, config *toml.Tree) string
- func StringifyTime(t time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func CheckIPWhitelist ¶
func NormalizedId ¶
func ParseString ¶
func PrivatekeyEncodeString ¶
func PrivatekeyEncodeString(key *rsa.PrivateKey) string
func PublicKeyEncodeString ¶
func RsaDecrypt ¶
func RsaDecrypt(text string, key *rsa.PrivateKey) (string, bool)
func StringifyTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.