ECB Mode (ARCH9113)
Esta página aún no está disponible en tu idioma.
Key swift.security.ecb-mode · Severity error · Category security · CWE CWE-327
Flags kCCOptionECBMode - ECB leaks plaintext patterns.
Incorrect
Section titled “Incorrect”CCCrypt(..., CCOptions(kCCOptionECBMode), ...)Correct
Section titled “Correct”let sealed = try AES.GCM.seal(data, using: key)Use an authenticated mode with a fresh nonce per message.