This package is made for dealing with security stuff like hashing, encryption, x509/pem marshal/unmaral, etc. It supports Md5/SHA512 hashing, x509 certificate encoding,AES-GCM 256-bit symmetric-key en/decryption etc.
Import as a normal go package
import "github.com/datewu/security"
Check these two encrypt_test.go
and hash_test.go
files.