Class EncryptionUtils

java.lang.Object
net.ontopia.utils.EncryptionUtils

public class EncryptionUtils extends Object
INTERNAL: Utilities for encrypting files. Replaces the old EncryptionWriter.
Since:
1.3.3
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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
    INTERNAL: Reads all the data in the InputStream, encrypts it, and writes it to the OutputStream.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EncryptionUtils

      public EncryptionUtils()
  • Method Details

    • encrypt

      public static void encrypt(File file) throws IOException
      INTERNAL: Reads the file into memory, encrypting it in the process, then writes the encrypted data back out to the file.
      Throws:
      IOException
    • encrypt

      public static void encrypt(File infile, File outfile) throws IOException
      INTERNAL: Reads in the infile and writes the encrypted result into the outfile.
      Throws:
      IOException
    • encrypt

      public static void encrypt(InputStream in, OutputStream out) throws IOException
      INTERNAL: Reads all the data in the InputStream, encrypts it, and writes it to the OutputStream.
      Throws:
      IOException