Versions in this module Expand all Collapse all v0 v0.2.0 Jan 17, 2017 v0.1.0 Jan 14, 2017 Changes in this version + func IsHashString(str string) bool + func RandBytes(size int) []byte + func RandPass(length int, count ...int) string + func SHA256Sum(str string) string + type Crypto struct + func New(salt []byte) *Crypto + func (c *Crypto) AESKey(userPass, dbPass string) string + func (c *Crypto) DecryptData(key, cipherData string) (string, error) + func (c *Crypto) EncryptData(key, plainData string) (string, error) + func (c *Crypto) EncryptUserPass(userID, userPass string) string + func (c *Crypto) ValidateUserPass(userID, userPass, dbPass string) bool