Skip to content

CX Use_Of_Broken_Or_Risky_Cryptographic_Algorithm @ Models/User.cs [Merge_Branch]

Use_Of_Broken_Or_Risky_Cryptographic_Algorithm issue exists @ Models/User.cs in branch Merge_Branch

In getHashedPassword, the application protects sensitive data using a cryptographic algorithm, ComputeHash, that is considered weak or even trivially broken, in Models\User.cs at line 74.

Severity: Low

CWE:327

Checkmarx

Training Recommended Fix

Lines: 74


Code (Line #74):

         var hash = md5.ComputeHash(System.Text.Encoding.ASCII.GetBytes(password));

Edited by Gabriel Prevelate