Documentation ¶
Index ¶
- func GetDataDigest(data []byte, algo string) (digest string, err error)
- func GetFileDigest(filename, algo string) (digest string, err error)
- func MD5(data []byte) (digest string, err error)
- func MD5String(str string) (digest string, err error)
- func SHA1(data []byte) (digest string, err error)
- func SHA256(data []byte) (digest string, err error)
- func SHA3512(data []byte) (digest string, err error)
- func SHA512(data []byte) (digest string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataDigest ¶
GetDataDigest Returns the hex digest of some data. @param data: calculate hash for data. @param algo: md5, sha1, sha256, sha512
func GetFileDigest ¶
GetFileDigest Returns the hex digest of a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.