Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codingsince1985/checksum
Compute message digest for large files in Go
https://github.com/codingsince1985/checksum
blake2s checksum crc32 go golang md5 message-digest sha1 sha256
Last synced: 4 days ago
JSON representation
Compute message digest for large files in Go
- Host: GitHub
- URL: https://github.com/codingsince1985/checksum
- Owner: codingsince1985
- License: mit
- Created: 2014-11-05T09:37:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T00:10:55.000Z (about 1 year ago)
- Last Synced: 2024-07-31T20:51:28.637Z (5 months ago)
- Topics: blake2s, checksum, crc32, go, golang, md5, message-digest, sha1, sha256
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 102
- Watchers: 3
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - checksum - Compute message digest, like MD5, SHA256, SHA1, CRC or BLAKE2s, for large files. (File Handling / Search and Analytic Databases)
- awesome-go-extra - checksum - 11-05T09:37:00Z|2021-11-29T08:44:34Z| (File Handling / Advanced Console UIs)
README
checksum
==
[![PkgGoDev](https://pkg.go.dev/badge/github.com/codingsince1985/checksum)](https://pkg.go.dev/github.com/codingsince1985/checksum)
[![Go Report Card](https://goreportcard.com/badge/codingsince1985/checksum)](https://goreportcard.com/report/codingsince1985/checksum)
[![codecov](https://codecov.io/gh/codingsince1985/checksum/branch/master/graph/badge.svg?token=BO1wAQwc85)](https://codecov.io/gh/codingsince1985/checksum)Compute message digest, like MD5, SHA256, SHA1, CRC or BLAKE2s-256 in Golang for potentially large files.
Usage
--
```go
package mainimport (
"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.