sonarjs/no-weak-cipher
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/no-weak-cipher": "error",
},
},
];crypto.createCipheriv("DES", key, iv); // Noncompliant: DES / 3DES is unsecure
crypto.createCipheriv("DES-EDE", key, ""); // Noncompliant: DES / 3DES is unsecure
crypto.createCipheriv("DES-EDE3", key, ""); // Noncompliant: DES / 3DES is unsecure
crypto.createCipheriv("RC2", key, iv); // Noncompliant: RC2 is vulnerable to a related-key attack
crypto.createCipheriv("RC4", key, "");// Noncompliant: RC4 is vulnerable to several attacks
crypto.createCipheriv("BF", key, iv);// Noncompliant: Blowfish use a 64-bit block size makes it vulnerable to birthday attackscrypto.createCipheriv("AES-256-GCM", key, iv);Examples from the ESLint documentation.
sonarjs/no-weak-cipher
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-weak-cipher": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Vue components should not use the deprecated "vue-class-component" or "vue-property-decorator" libraries
Non-existent operators '=+', '=-' and '=!' should not be used
React state setter function should not be called with its matching state variable
Properties of variables with "null" or "undefined" values should not be accessed