Created
February 9, 2016 08:04
-
-
Save icchan/a5055c3357b79c55eb8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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