Decrypts a file – Return to the available commands
- Use as library
import static com.creoart.Ema.*;
public class Main {
public static void main(String[] args) {
...
fileDecryption("1713029475699363400_g7nnmy6cEHgoOK4YYSIiOBXWhYMDC2Gs.msk", "");
...
}
}
Obviously all the paths and the key have already been configured.
- Command-line operation
PS C:\Users\guest\EMA versions\Ema_jar> java -jar .\Ema.jar '--fileDecryption 1713029475699363400_g7nnmy6cEHgoOK4YYSIiOBXWhYMDC2Gs.msk ""'
--fileDecryption [String filename, String output_directory]
...............................................................................................
Description: Executes the file decrypting stage:
the key must be set;
the encrypted file must exist, see --setEncryptedDir or have to be specified and must
exist the output_directory as an absolute path.
The decrypted file will be written to the directory specified by --setDecryptedFilesDirectory
tor have to be specified and must exist the output_directory as an absolute path.
If use --enableSaveDecryptedFileToOriginDirectory the decrypted file will be
written to the origin source directory overwriting the origin file if exist.
...............................................................................................
Parameters: 1. String: the filename to decrypt or empty to decrypt the getLastEncryptedFilename
2. String: the output directory (optional)
...............................................................................................
Prep cmd: '--setKeyFilename [String]'
'--setDecryptedFilesDirectory [String]'
...............................................................................................
Linked cmd: '--enableSaveDecryptedFileToOriginDirectory'
'--disableSaveDecryptedFileToOriginDirectory'
'--enableEncryptionDetails'
'--disableEncryptionDetails'
...............................................................................................
Example: $ java -jar Ema.jar '--fileDecryption 1713029475699363400_g7nnmy6cEHgoOK4YYSIiOBXWhYMDC2Gs.msk C:\'