Documentation ¶
Index ¶
Constants ¶
View Source
const HASH_LENGTH = 32
Variables ¶
This section is empty.
Functions ¶
func FastHash ¶
func FastHash(data interface{}) string
FastHash - sha1 hash the given data and return the hash as hex string
func Hash ¶
func Hash(data interface{}) string
Hash - hash the given data and return the hash as hex string
func RawFastHash ¶
func RawFastHash(data interface{}) []byte
RawFastHash - Logic to sha1 hash the text and return the hash bytes
Types ¶
type HashBytes ¶
type HashBytes [HASH_LENGTH]byte
Click to show internal directories.
Click to hide internal directories.