Skip to content

Add BenchmarkTest00005 servlet for encryption#15

Open
aaronpynos wants to merge 1 commit intomainfrom
aaronpynos-patch-15
Open

Add BenchmarkTest00005 servlet for encryption#15
aaronpynos wants to merge 1 commit intomainfrom
aaronpynos-patch-15

Conversation

@aaronpynos
Copy link
Copy Markdown
Owner

No description provided.

@snyk-io
Copy link
Copy Markdown

snyk-io bot commented Nov 5, 2025

Snyk checks have failed. 2 issues have been found so far.

Status Scanner Critical High Medium Low Total (2)
Licenses 0 0 0 0 0 issues
Code Security 0 2 0 0 2 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@aaronpynos
Copy link
Copy Markdown
Owner Author

aaronpynos commented Nov 5, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

byte[] iv = random.generateSeed(8); // DES requires 8 byte keys

try {
javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  Use of a Broken or Risky Cryptographic Algorithm

The DES cipher used in javax.crypto.Cipher.getInstance (with algorithm string "DES/CBC/PKCS5Padding") is insecure. Consider using AES.

Line 63 | CWE-327 | Priority score 867 | Learn more about this vulnerability

javax.crypto.Cipher c = javax.crypto.Cipher.getInstance("DES/CBC/PKCS5Padding");

// Prepare the cipher to encrypt
javax.crypto.SecretKey key = javax.crypto.KeyGenerator.getInstance("DES").generateKey();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  Use of a Broken or Risky Cryptographic Algorithm

The DES cipher used in javax.crypto.KeyGenerator.getInstance (with algorithm string "DES") is insecure. Consider using AES.

Line 66 | CWE-327 | Priority score 867 | Learn more about this vulnerability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant