Broken Cipher (ARCH9112)
Ce contenu n’est pas encore disponible dans votre langue.
Key swift.security.broken-cipher · Severity error · Category security · CWE CWE-327
Flags CommonCrypto DES / 3DES / RC4 / Blowfish algorithms.
Incorrect
Section titled “Incorrect”CCCrypt(CCOperation(kCCEncrypt), CCAlgorithm(kCCAlgorithmDES), ...)Correct
Section titled “Correct”let sealed = try AES.GCM.seal(data, using: key)Use CryptoKit AES.GCM or ChaChaPoly.