public class EncryptionUtils extends Object
| Constructor and Description |
|---|
EncryptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
encrypt(File file)
INTERNAL: Reads the file into memory, encrypting it in the
process, then writes the encrypted data back out to the file.
|
static void |
encrypt(File infile,
File outfile)
INTERNAL: Reads in the infile and writes the encrypted result
into the outfile.
|
static void |
encrypt(InputStream in,
OutputStream out)
INTERNAL: Reads all the data in the InputStream, encrypts it, and
writes it to the OutputStream.
|
public static void encrypt(File file) throws IOException
IOExceptionpublic static void encrypt(File infile, File outfile) throws IOException
IOExceptionpublic static void encrypt(InputStream in, OutputStream out) throws IOException
IOException