https://github.com/deatil/go-md6
go-md6 is a md6 hash function with cgo
https://github.com/deatil/go-md6
go go-md6 md6 md6-hash
Last synced: about 2 months ago
JSON representation
go-md6 is a md6 hash function with cgo
- Host: GitHub
- URL: https://github.com/deatil/go-md6
- Owner: deatil
- License: apache-2.0
- Created: 2024-04-19T04:07:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T03:57:04.000Z (about 2 years ago)
- Last Synced: 2025-06-02T22:47:35.787Z (about 1 year ago)
- Topics: go, go-md6, md6, md6-hash
- Language: C
- Homepage: https://pkg.go.dev/github.com/deatil/go-md6
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-md6
md6 Hash with cgo
### Env
CGO_ENABLED=1
### Download
```cmd
go get -u github.com/deatil/go-md6
```
### Get Starting
```go
import "github.com/deatil/go-md6"
func main() {
data := []byte("...")
h := md6.New256()
h.Write(data)
sum := h.Sum(nil)
}
```
### New Functions
md6 have `New` functions: `New(d int) (hash.Hash, error)`,
`New224() hash.Hash`,
`New256() hash.Hash`,
`New384() hash.Hash`,
`New512() hash.Hash`
### Sum Functions
md6 have `Sum` functions: `Sum(d int, data []byte) (out []byte, err error)`,
`Sum224(data []byte) (out [Size224]byte)`,
`Sum256(data []byte) (out [Size256]byte)`,
`Sum384(data []byte) (out [Size384]byte)`,
`Sum512(data []byte) (out [Size512]byte)`
### LICENSE
* The library LICENSE is `Apache2`, using the library need keep the LICENSE.
### Copyright
* Copyright deatil(https://github.com/deatil).