checksum
CategoryFile Handling
SubcategoryFile Handling
Stars0
Compute message digest, like MD5, SHA256, SHA1, CRC or BLAKE2s, for large files
About checksum
checksum
Compute message digest, like MD5, SHA256, SHA1, CRC or BLAKE2s-256 in Golang for potentially large files.
Usage
package main
import (
"fmt"
"github.com/codingsince1985/checksum"
)
func main() {
file := "/home/jerry/Downloads/ubuntu-20.04.2.0-desktop-amd64.iso"
md5, _ := checksum.MD5sum(file)
fmt.Println(md5)
sha256, _ := checksum.SHA256sum(file)
fmt.Println(sha256)
sha1, _ := checksum.SHA1sum(file)
fmt.Println(sha1)
crc32, _ := checksum.CRC32(file)
fmt.Println(crc32)
blake2s256, _ := checksum.Blake2s256(file)
fmt.Println(blake2s256)
}
License
checksum is distributed under the terms of the MIT license. See LICENSE for details.
Frequently Asked Questions
What is checksum?
checksum is a File Handling library for the Go programming language. Compute message digest, like MD5, SHA256, SHA1, CRC or BLAKE2s, for large files
How do I install checksum?
Install checksum with the Go module system using `go get codingsince1985/checksum`. Check the repository for the current installation instructions.
What category does checksum belong to?
checksum is listed under File Handling, specifically File Handling.