Avoid DES and 3DES

Metadata

ID: javascript-node-security/avoid-des

Language: JavaScript

Severity: Warning

Category: Security

Description

Use of insecure encryption or hashing protocols expose your application to vulnerabilities.

Learn More

Non-Compliant Code Examples

var encrypted = CryptoJS.DES.encrypt("Message", "Secret Passphrase");
var decrypted = CryptoJS.DES.decrypt(encrypted, "Secret Passphrase");
var encrypted = CryptoJS.TripleDES.encrypt("Message", "Secret Passphrase");
var decrypted = CryptoJS.TripleDES.decrypt(encrypted, "Secret Passphrase");