Documentation
¶
Index ¶
- func GetHasher(ht HashType) hash.Hash
- func HashBytes(b []byte, ht HashType) string
- func HashFile(file fsw.IFileReader, ht HashType, bl int) (hashed string, err error)
- func HashFilePath(path string, ht HashType, bl int) (hashed string, err error)
- func HashString(s string, ht HashType) string
- type HashType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashFile ¶
HashFile uses buffer with specified length to read and hash file as []byte
bl is the number of bytes for HashFile to create reading buffer. If provided 0, it will be set for 1024 (1KB)
func HashFilePath ¶
HashFilePath opens specified file and calls to HashFile
bl is the number of bytes for HashFile to create reading buffer. If provided 0, it will be set for 1024 (1KB)
Types ¶
Click to show internal directories.
Click to hide internal directories.