Categorygithub.com/devplayg/goutils
repositorypackage
0.0.0-20210102125602-16d67ccf30ee
Repository: https://github.com/devplayg/goutils.git
Documentation: pkg.go.dev

# README

goutils

Build Status

Something that enriches the Go

Crypto

EncAesCbc(data, key []byte) ([]byte, error) 
DecAesCbc(data, key []byte) ([]byte, error) 
EncAes128Cbc(data, key []byte) ([]byte, error) 
EncAes192Cbc(data, key []byte) ([]byte, error) 
EncAes256Cbc(data, key []byte) ([]byte, error) 
DecAes128Cbc(data, key []byte) ([]byte, error) 
DecAes192Cbc(data, key []byte) ([]byte, error) 
DecAes256Cbc(data, key []byte) ([]byte, error)  

EncAesGcm(data, key, nonce []byte) ([]byte, error)
DecAesGcm(data, key, nonce []byte) ([]byte, error)

Compress

Gunzip(s []byte) ([]byte, error) 
Gzip(data []byte) ([]byte, error) 

Network

IntToIPv4(nn uint32) net.IP 
IPv4ToInt(ip net.IP) uint32