Documentation ¶ Index ¶ Variables func Decrypt(key, text string) (string, error) func Encrypt(key, text string) (string, error) func HashSha256(v string) string func IsOkHash(s string, hash string) bool Constants ¶ This section is empty. Variables ¶ View Source var ( ErrEncrypt = errors.New("encrypt Error:") ErrDecrypt = errors.New("decrypt Error:") ErrTextIsShort = errors.New("text/key too short or long!") ErrHashNotMatch = errors.New("hash not match") ) Functions ¶ func Decrypt ¶ func Decrypt(key, text string) (string, error) func Encrypt ¶ func Encrypt(key, text string) (string, error) func HashSha256 ¶ func HashSha256(v string) string func IsOkHash ¶ func IsOkHash(s string, hash string) bool Types ¶ This section is empty. Source Files ¶ View all Source files decrypt.go encrypt.go errors.go fixerKey.go hash256.go Click to show internal directories. Click to hide internal directories.