org.sonar.l10n.java.rules.squid.S2258.html Maven / Gradle / Ivy
By contract, the NullCipher
class provides an "identity cipher" -- one that does not transform or encrypt the plaintext in any way. As a consequence, the ciphertext is identical to the plaintext. So this class should be used for testing, and never in production code.
Noncompliant Code Example
NullCipher nc=new NullCipher();
See
- CWE-327: Use of a Broken or Risky Cryptographic Algorithm
- OWASP Top Ten 2013 Category A6 - Sensitive Data Exposure
- Derived from FindSecBugs rule NullCipher Unsafe
© 2015 - 2025 Weber Informatics LLC | Privacy Policy