Potential usage of DES, RC4, MD5 or SHA1 GSC-G401
Security
Major
6 months ago2 years old
Use of weak cryptographic primitive
30
31// MD5 returns a random MD5 based random hashed string
32func (hash Hash) MD5() string {
33	hashFunction := md5.New()34	randomString := hash.Faker.Lorem().Word()
35	hashFunction.Write([]byte(randomString))
36	return fmt.Sprintf("%x", string(hashFunction.Sum(nil)))