Documentation ¶
Overview ¶
Provides the data structures and methods used in encryption.
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
- data is the data to hash
func Hash ¶
func Hash(data interface{}) string
Hash hash the given data and return the hash as hex string
- data is the data to hash
func RawFastHash ¶
func RawFastHash(data interface{}) []byte
RawFastHash - Logic to sha1 hash the text and return the hash bytes
- data is the data to hash
Types ¶
Click to show internal directories.
Click to hide internal directories.