File: README.md

package info (click to toggle)
golang-github-jzelinskie-whirlpool 0.0~git20170603.c19460b-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 116 kB
  • sloc: makefile: 2
file content (43 lines) | stat: -rw-r--r-- 874 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# whirlpool.go
A [whirlpool hashing](https://en.wikipedia.org/wiki/Whirlpool_(cryptography)) library for go

## Build status

[![Build Status](https://secure.travis-ci.org/jzelinskie/whirlpool.png)](http://travis-ci.org/jzelinskie/whirlpool)

## Setup

```bash
$ go get github.com/jzelinskie/whirlpool
```

## Example

```Go
package main

import (
  "fmt"
  "github.com/jzelinskie/whirlpool"
)

func main() {
  w := whirlpool.New()
  text := []byte("This is an example.")
  w.Write(text)
  fmt.Println(w.Sum(nil))
}
```

## Docs

Check out the [gopkgdoc page](http://go.pkgdoc.org/github.com/jzelinskie/whirlpool), but there isn't much -- it works just like the other hashes in the standard library

## Branches

* master - stable, works like the hash libs in the corelib
* trace - same code as master, but prints midstate values to stdout

## license

Modified BSD License