Documentation ¶
Overview ¶
Package hash provides utility functions for generating hashes from strings and random keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomKey ¶
GenerateRandomKey generates a random string of length l. It returns an empty string and an error if an error occurs while generating a random number.
func IntFromString ¶
IntFromString generates a uint64 from a string. Values returned by this function are guaranteed to be the same for equal strings. They are not guaranteed to be unique for different strings.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package md5 provides utility functions for generating MD5 hashes.
|
Package md5 provides utility functions for generating MD5 hashes. |
Package oshash implements the algorithm that OpenSubtitles.org uses to generate unique hashes.
|
Package oshash implements the algorithm that OpenSubtitles.org uses to generate unique hashes. |
Click to show internal directories.
Click to hide internal directories.