mirror of
https://github.com/versia-pub/versia-go.git
synced 2025-12-06 06:28:18 +01:00
10 lines
135 B
Go
10 lines
135 B
Go
package versiacrypto
|
|
|
|
import "crypto/sha256"
|
|
|
|
func SHA256(data []byte) []byte {
|
|
h := sha256.New()
|
|
h.Write(data)
|
|
return h.Sum(nil)
|
|
}
|