public class IdeaFileEncryption extends Object
The file format is compatible with that of IDEA V1.1 (IDEA_CMD.C, ETH version). The length of the plaintext data file is appended to the encrypted file in an 8 byte suffix.
| Modifier and Type | Class and Description |
|---|---|
static class |
IdeaFileEncryption.Mode
Block cipher mode of operation.
|
| Constructor and Description |
|---|
IdeaFileEncryption() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cryptFile(String inputFileName,
String outputFileName,
String charKey,
boolean encrypt,
IdeaFileEncryption.Mode mode)
Encrypts or decrypts a file.
|
public static void cryptFile(String inputFileName, String outputFileName, String charKey, boolean encrypt, IdeaFileEncryption.Mode mode) throws IOException
inputFileName - Name of the input file.outputFileName - Name of the output file.charKey - The encryption key. A string of ASCII characters within the range 0x21 .. 0x7E.encrypt - true to encrypt, false to decrypt.mode - Mode of operation.IOException