> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# java-des-cipher

> A JCA Cipher factory explicitly selects DES.

## What it flags

Reports a DES string literal passed to `javax.crypto.Cipher.getInstance` or to `Cipher.getInstance` with an unshadowed JCA import. A DES constant or other computed transformation is outside this check.

The check identifies the mode when the factory call initializes a local variable and the next statement calls `init` on that variable with JCA's `Cipher.ENCRYPT_MODE` or `Cipher.DECRYPT_MODE`, including their fully qualified forms. Observed decryption is contextual. Other matches report the DES selection and ask you to verify how the cipher is used.

Legacy ciphertext migration may require retaining a decryption path while new writes use a different format. Review the data retention and compatibility requirements before changing the transformation. The rule leaves the ciphertext format and source unchanged.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{ "rules": { "java-des-cipher": "off" } }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.