Documentation ¶
Index ¶
- func EncryptBytes(data []byte) (encrypt string, err error)
- func EncryptFile(path string) (encrypt string, err error)
- func EncryptString(data string) (encrypt string, err error)
- func MustEncryptBytes(data []byte) string
- func MustEncryptFile(path string) string
- func MustEncryptString(data string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptBytes ¶
EncryptBytes encrypts <data> using MD5 algorithms.
func EncryptFile ¶
EncryptFile encrypts file content of <path> using MD5 algorithms.
func EncryptString ¶
EncryptBytes encrypts string <data> using MD5 algorithms.
func MustEncryptBytes ¶
func MustEncryptFile ¶
MustEncryptFile encrypts file content of <path> using MD5 algorithms. It panics if any error occurs.
func MustEncryptString ¶
MustEncryptString encrypts string <data> using MD5 algorithms. It panics if any error occurs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.