Sobelow.Crypto.WeakCipher (Sobelow v0.18.1)
View SourceWeak ciphers and unauthenticated encryption
DES, 3DES, RC2, RC4, Blowfish and ECB modes receive high confidence. Prefer authenticated encryption such as AES-GCM or ChaCha20-Poly1305.
AES CBC, CTR, CFB and OFB modes, and raw ChaCha20, receive low confidence: these primitives do not authenticate ciphertext on their own. A separate, correctly composed MAC may make their use appropriate. The presence of an HMAC elsewhere in a function does not prove that composition and does not suppress the finding. Decryption calls are included for legacy data.
This check inspects literal algorithm atoms in one-shot, streaming and legacy APIs. It does not resolve algorithms stored in variables, inspect keys or IVs, or validate the surrounding protocol.
https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html
$ mix sobelow -i Crypto.WeakCipher