Class HiddenDataTool

java.lang.Object
de.das.encrypter.tools.HiddenDataTool

public class HiddenDataTool extends Object
This class provides methods for hiding and recovering keys in and from PNG images, WAV files and QR images.
  • Constructor Details

    • HiddenDataTool

      public HiddenDataTool()
  • Method Details

    • keyFromQr

      public byte[] keyFromQr(File f)
      Recovers a key contained in a QR code image.
      Parameters:
      f - a file containing the image of a QR code.
      Returns:
      the key that was hidden in the QR code or null if no key was found.
    • keyInQr

      public boolean keyInQr(File f) throws Exception
      Checks whether a key is contained the QR-Code contained in the specified file.
      Parameters:
      f - a given file.
      Returns:
      true, if a key is contained in the QR-Code.
      Throws:
      Exception - in case of an error.
    • keyInWav

      public boolean keyInWav(File f) throws Exception
      Checks whether a key is woven into the audio stream contained in the specified file.
      Parameters:
      f - a given file.
      Returns:
      true, if a key is woven into the audio stream.
      Throws:
      Exception - in case of an error.
    • keyInPng

      public boolean keyInPng(File f) throws Exception
      Checks whether a key is woven into the image contained in the specified file.
      Parameters:
      f - a given file.
      Returns:
      true, if a key is woven into the image.
      Throws:
      Exception - in case of an error.
    • byteArrayFromImg

      public byte[] byteArrayFromImg(File f)
    • byteArrayFromWav

      public byte[] byteArrayFromWav(File f)
    • byteArrayFromQr

      public byte[] byteArrayFromQr(File f)
    • getKeyNameFromWav

      public String getKeyNameFromWav(File f)
    • getKeyNameFromImg

      public String getKeyNameFromImg(File f)