Documentation ¶
Overview ¶
Package crypt implements cryptography and hashing helpers.
Index ¶
- func BruteMT(w int, h string, in string) (string, bool)
- func BruteST(h hash.Hash, in string) (string, bool)
- func GetHasher(algo string) hash.Hash
- func GetHasherLazy(algo string) hash.Hash
- func GetPrintableLazy(algo string, hash []byte) string
- func IsAvailable(algo string) bool
- func IsAvailableLazy(algo string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BruteMT ¶
BruteMT bruteforces the needed input for hash in with the hash function h within length of maxLen (constant) using runeSet (var) as base in multi-threaded mode.
func BruteST ¶
BruteST bruteforces the needed input for hash in with the hash function h within length of maxLen (constant) using runeSet (var) as base in single-threaded mode.
func GetHasher ¶
GetHasher returns a hash function if the specified algorithm was found.
func GetHasherLazy ¶ added in v0.2.0
GetHasherLazy is a wrapper to the function GetHasher being less opiniated about the input value.
func GetPrintableLazy ¶ added in v0.2.1
GetPrintableLazy returns the string representation of a hash. Mostly it handles the fact that the OE-Encode implementation does not behave like the others.
func IsAvailable ¶
IsAvailable returns a boolean indicating support for specified hasher.
Types ¶
This section is empty.