Documentation ¶
Index ¶
- Variables
- func Decrypt(data []byte, salt []byte, iv []byte, key []byte) []byte
- func Deflate(data []byte) []byte
- func Encrypt(data []byte, key []byte, salt *[32]byte) (ciphertext []byte, iv []byte, keysalt []byte)
- func GenKey(key, salt []byte) []byte
- func GenSalt() *[32]byte
- func GenerateID(n int) string
- func HashID(id []byte) []byte
- func Inflate(data []byte) []byte
- func InitLogger(cfg *config.Config)
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func GenerateID ¶
func InitLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.