Package de.das.encrypter.tools
Class HiddenDataTool
java.lang.Object
de.das.encrypter.tools.HiddenDataTool
This class provides methods for hiding and recovering keys in and from PNG
images, WAV files and QR images.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]byte[]byte[]Recovers a key contained in a QR code image.booleanChecks whether a key is woven into the image contained in the specified file.booleanChecks whether a key is contained the QR-Code contained in the specified file.booleanChecks whether a key is woven into the audio stream contained in the specified file.
-
Constructor Details
-
HiddenDataTool
public HiddenDataTool()
-
-
Method Details
-
keyFromQr
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
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
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
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
-
byteArrayFromWav
-
byteArrayFromQr
-
getKeyNameFromWav
-
getKeyNameFromImg
-