crypto — weak hash
Reversible One Way Hash in crypto Package
The Go crypto package provides a number of functions for hashing data.
However, some of the hash algorithms supported by hashlib are insecure and
should not be used. These insecure hash algorithms include MD5 and
SHA-1.
The MD5 hash algorithm is a cryptographic hash function that was designed in the early 1990s. MD5 is no longer considered secure, and passwords hashed with MD5 can be easily cracked by attackers.
The SHA-1 hash algorithm is also a cryptographic hash function that was designed in the early 1990s. SHA-1 is no longer considered secure, and passwords hashed with SHA-1 can be easily cracked by attackers.
Example
| crypto_weak_hash_md5_new.go | |
|---|---|
Example Output
Remediation
The recommendation is to swap the insecure hashing method to one of the more
secure alternatives, sha256 or sha512.
| crypto_weak_hash_md5_new.go | |
|---|---|
Default Configuration
See also
Info
New in version 0.2.1