취약하거나 위험한 암호화 알고리즘(MD5) 사용
Use of a Broken or Risky Cryptographic Algorithm
설명
잠재적 영향
해결 방법
취약한 코드 및 안전한 코드 예시
취약한 코드
const crypto = require('crypto');
function setUserPassword(user, pwtext) {
const hash = crypto.createHash('md5').update(pwtext).digest('hex');
user.setPassword(hash);
}안전한 코드
참조
Last updated