public class RaesFiles extends Object
Note that this class is not intended to access RAES encrypted ZIP files -
use the TFile
class for this task instead.
Modifier and Type | Method and Description |
---|---|
static void |
decrypt(String raesFilePath,
String plainFilePath,
boolean strongAuthentication)
Decrypts the given RAES file to the given plain file.
|
static void |
decrypt(String raesFilePath,
String plainFilePath,
boolean authenticate,
TArchiveDetector detector)
Decrypts the given RAES file to the given plain file,
using the provided TArchiveDetector to detect any archvie files in its
parent directory path except the files themselves, which are not
recognized as archive files.
|
static void |
encrypt(String plainFilePath,
String raesFilePath)
Encrypts the given plain file to the given RAES file.
|
static void |
encrypt(String plainFilePath,
String raesFilePath,
TArchiveDetector detector)
Encrypts the given plain file to the given RAES file,
using the provided TArchiveDetector to detect any archive files in its
parent directory path except the files themselves, which are not
recognized as archive files.
|
public static void decrypt(String raesFilePath, String plainFilePath, boolean strongAuthentication) throws IOException
IOException
public static void decrypt(String raesFilePath, String plainFilePath, boolean authenticate, TArchiveDetector detector) throws IOException
authenticate
- If this is true
, the entire contents of the
encrypted file get authenticated, which can be a time consuming
operation.
Otherwise, only the key/password and the file length get
authenticated.IOException
public static void encrypt(String plainFilePath, String raesFilePath) throws IOException
IOException
public static void encrypt(String plainFilePath, String raesFilePath, TArchiveDetector detector) throws IOException
IOException
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.