Documentation ¶
Overview ¶
Package gsha1 provides useful API for SHA1 encryption algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
func Encrypt(v interface{}) string
Encrypt encrypts any type of variable using SHA1 algorithms. It uses package gconv to convert `v` to its bytes type.
func EncryptFile ¶
EncryptFile encrypts file content of `path` using SHA1 algorithms.
func MustEncryptFile ¶
MustEncryptFile encrypts file content of `path` using SHA1 algorithms. It panics if any error occurs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.