취약한 암호화 알고리즘 사용
Use of a Broken or Risky Cryptographic Algorithm
설명
잠재적 영향
해결 방법
취약한 코드 및 안전한 코드 예시
취약한 코드
# Unsafe DES encryption
from Crypto.Cipher import DES
key = b'8bytekey' # 56비트 DES 키
cipher = DES.new(key, DES.MODE_ECB)
plaintext = b'This is a secret message.'
ciphertext = cipher.encrypt(plaintext)안전한 코드
설명:
참조
Last updated