Skip to content

Instantly share code, notes, and snippets.

@icchan
Created February 9, 2016 08:04
Show Gist options
  • Save icchan/a5055c3357b79c55eb8f to your computer and use it in GitHub Desktop.
Save icchan/a5055c3357b79c55eb8f to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"golang.org/x/crypto/ripemd160"
)
func main() {
hasher := ripemd160.New()
hasher.Write([]byte("The quick brown fox jumps over the lazy dog"))
hashBytes := hasher.Sum(nil)
hashString := fmt.Sprintf("%x", hashBytes)
fmt.Println(hashString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment