Documentation ¶
Index ¶
- func BcryptHash(password string) (string, error)
- func BcryptVerify(password, hash string) bool
- func DecodeBase64(b64s string) (string, error)
- func DecodeBase64ToBytes(b64s string) ([]byte, error)
- func Decrypt(key, b64s string) (string, error)
- func Deserialize(byt []byte, ptr interface{}) (err error)
- func EncodeBase64(text string) string
- func EncodeBytesToBase64(b []byte) string
- func Encrypt(key, text string) (string, error)
- func EncryptBytes(key, text []byte) (string, error)
- func GenerateId() string
- func Serialize(value interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptHash ¶
func BcryptVerify ¶
func DecodeBase64 ¶
func DecodeBase64ToBytes ¶
func Deserialize ¶
Deserialize deserialices the passed []byte into a the passed ptr interface{}
func EncodeBase64 ¶
func EncodeBytesToBase64 ¶
func EncryptBytes ¶
func GenerateId ¶
func GenerateId() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.