2017-12-28 2 views

답변

0

사용 crypto/sha1

package main 

import (
    "crypto/sha1" 
    "fmt" 
) 

func main() { 
    s := sha1.New() 
    s.Write([]byte("Hello world")) 
    fmt.Printf("%x", s.Sum(nil)) 
} 

playground

관련 문제