github.com/qxnw/lib4go@v0.0.0-20180426074627-c80c7e84b925/security/crc32/crc32.go (about)

     1  package crc32
     2  
     3  import "hash/crc32"
     4  
     5  func Encrypt(buffer []byte) uint32 {
     6  	return crc32.ChecksumIEEE(buffer)
     7  }