| java.lang.Object snow.fileencryptor.SimpleFileEncryptor
SimpleFileEncryptor | final public class SimpleFileEncryptor (Code) | | Encrypt/decrypt a file and some utilities.
|
Method Summary | |
public static byte[] | calculateSHA1Hash(File f) | public static void | decryptFile(File in, File out, SecretKey key, int bufferSize, ProgressModalDialog progressDialog) | public static void | encryptDirectory(File in, File out, boolean delete, SecretKey key, int bufferSize, ProgressModalDialog progressDialog) | public static void | encryptFile(File in, File out, SecretKey key, int bufferSize, ProgressModalDialog progressDialog) The progress must be set so that it can be incremented by 1 on each buffersize read. | public static void | fillRandom(byte[] buf) | public static SecretKeyID | getKeyIDFromFile(File in) | public static String | verifyEncryptedFile(File source, File encrypted, SecretKey key, int bufferSize, ProgressModalDialog progressDialog) | public static void | wipeFile(File f, int bufferSize, ProgressModalDialog progressDialog, int passes) Overwrites the file content with a random buffer. |
encryptFile | public static void encryptFile(File in, File out, SecretKey key, int bufferSize, ProgressModalDialog progressDialog) throws Exception(Code) | | The progress must be set so that it can be incremented by 1 on each buffersize read.
|
fillRandom | public static void fillRandom(byte[] buf)(Code) | | |
wipeFile | public static void wipeFile(File f, int bufferSize, ProgressModalDialog progressDialog, int passes)(Code) | | Overwrites the file content with a random buffer.
|
|
|