Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "crypto/sha256"
- "encoding/hex"
- "fmt"
- "golang.org/x/crypto/ripemd160"
- )
- func main() {
- input := []byte{0x51}
- sum := sha256.Sum256(input)
- hasher := ripemd160.New()
- hasher.Write(sum[:])
- hashBytes := hasher.Sum(nil)
- encodedStr := hex.EncodeToString(hashBytes[:])
- fmt.Println(encodedStr)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement