Documentation ¶
Index ¶
- func Hash(inputs ...[]byte) string
- func HashStrings(strings ...string) string
- func IsValidHash(xid string) bool
- func IsValidRandom(xid string) bool
- func IsValidTimeAndHash(xid string) bool
- func IsValidTimeAndRandom(xid string) bool
- func Random() string
- func TimeAndHash(time time.Time, inputs ...[]byte) string
- func TimeAndHashStrings(time time.Time, strings ...string) string
- func TimeAndRandom(time time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashStrings ¶ added in v0.4.0
HashString returns a base32-encoded 192-bit hash of strings.
func IsValidHash ¶
func IsValidRandom ¶
func IsValidTimeAndHash ¶
func IsValidTimeAndRandom ¶
func TimeAndHash ¶
TimeAndHash returns a base32-encoded string of a 64-bit timestamp followed by a 128-bit hash of inputs.
func TimeAndHashStrings ¶ added in v0.4.0
TimeAndRandomString returns a base32-encoded string of a 64-bit timestamp followed by a 128-bit hash of strings.
func TimeAndRandom ¶
TimeAndRandom returns a base32-encoded string of a 64-bit timestamp followed by 128 random bits.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.