|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.openstego.OpenStego
This is the main class for OpenStego. It includes the main(java.lang.String[])
method which provides the
command line interface for the tool. It also has API methods which can be used by external programs
when using OpenStego as a library.
Field Summary | |
static String |
NAMESPACE
Constant for the namespace for labels |
Constructor Summary | |
OpenStego(OpenStegoPlugin plugin)
Constructor using the default configuration |
|
OpenStego(OpenStegoPlugin plugin,
Map propMap)
Constructor with configuration data in the form of Map |
|
OpenStego(OpenStegoPlugin plugin,
OpenStegoConfig config)
Constructor using OpenStegoConfig object |
Method Summary | |
double |
checkMark(byte[] stegoData,
String stegoFileName,
byte[] origSigData)
Method to check the correlation for the given image and the original signature |
double |
checkMark(File stegoFile,
File origSigFile)
Method to check the correlation for the given image and the original signature (alternate API) |
byte[] |
embedData(byte[] msg,
String msgFileName,
byte[] cover,
String coverFileName,
String stegoFileName)
Method to embed the message data into the cover data |
byte[] |
embedData(File msgFile,
File coverFile,
String stegoFileName)
Method to embed the message data into the cover data (alternate API) |
byte[] |
embedMark(byte[] sig,
String sigFileName,
byte[] cover,
String coverFileName,
String stegoFileName)
Method to embed the watermark signature data into the cover data |
byte[] |
embedMark(File sigFile,
File coverFile,
String stegoFileName)
Method to embed the watermark signature data into the cover data (alternate API) |
List |
extractData(byte[] stegoData,
String stegoFileName)
Method to extract the message data from stego data |
List |
extractData(File stegoFile)
Method to extract the message data from stego data (alternate API) |
byte[] |
extractMark(byte[] stegoData,
String stegoFileName,
byte[] origSigData)
Method to extract the watermark data from stego data |
byte[] |
extractMark(File stegoFile,
File origSigFile)
Method to extract the watermark data from stego data (alternate API) |
byte[] |
generateSignature()
Method to generate the signature data using the given plugin |
OpenStegoConfig |
getConfig()
Get method for configuration data |
byte[] |
getDiff(byte[] stegoData,
String stegoFileName,
byte[] coverData,
String coverFileName,
String diffFileName)
Method to get difference between original cover file and the stegged file |
byte[] |
getDiff(File stegoFile,
File coverFile,
String diffFileName)
Method to get difference between original cover file and the stegged file |
static void |
main(String[] args)
Main method for calling openstego from command line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NAMESPACE
Constructor Detail |
public OpenStego(OpenStegoPlugin plugin) throws OpenStegoException
plugin
- Stego plugin to use
OpenStegoException
public OpenStego(OpenStegoPlugin plugin, OpenStegoConfig config) throws OpenStegoException
OpenStegoConfig
object
plugin
- Stego plugin to useconfig
- OpenStegoConfig object with configuration data
OpenStegoException
public OpenStego(OpenStegoPlugin plugin, Map propMap) throws OpenStegoException
Map
- Parameters:
plugin
- Plugin objectpropMap
- Map containing the configuration data
- Throws:
OpenStegoException
Method Detail |
public byte[] embedData(byte[] msg, String msgFileName, byte[] cover, String coverFileName, String stegoFileName) throws OpenStegoException
msg
- Message data to be embeddedmsgFileName
- Name of the message filecover
- Cover data into which message data needs to be embeddedcoverFileName
- Name of the cover filestegoFileName
- Name of the output stego file
OpenStegoException
public byte[] embedData(File msgFile, File coverFile, String stegoFileName) throws OpenStegoException
msgFile
- File containing the message data to be embeddedcoverFile
- Cover file into which data needs to be embeddedstegoFileName
- Name of the output stego file
OpenStegoException
public byte[] embedMark(byte[] sig, String sigFileName, byte[] cover, String coverFileName, String stegoFileName) throws OpenStegoException
sig
- Signature data to be embeddedsigFileName
- Name of the signature filecover
- Cover data into which signature data needs to be embeddedcoverFileName
- Name of the cover filestegoFileName
- Name of the output stego file
OpenStegoException
public byte[] embedMark(File sigFile, File coverFile, String stegoFileName) throws OpenStegoException
sigFile
- File containing the signature data to be embeddedcoverFile
- Cover file into which data needs to be embeddedstegoFileName
- Name of the output stego file
OpenStegoException
public List extractData(byte[] stegoData, String stegoFileName) throws OpenStegoException
stegoData
- Stego data from which the message needs to be extractedstegoFileName
- Name of the stego file
OpenStegoException
public List extractData(File stegoFile) throws OpenStegoException
stegoFile
- Stego file from which message needs to be extracted
OpenStegoException
public byte[] extractMark(byte[] stegoData, String stegoFileName, byte[] origSigData) throws OpenStegoException
stegoData
- Stego data from which the watermark needs to be extractedstegoFileName
- Name of the stego fileorigSigData
- Original signature data
OpenStegoException
public byte[] extractMark(File stegoFile, File origSigFile) throws OpenStegoException
stegoFile
- Stego file from which watermark needs to be extractedorigSigFile
- Original signature file
OpenStegoException
public double checkMark(byte[] stegoData, String stegoFileName, byte[] origSigData) throws OpenStegoException
stegoData
- Stego data containing the watermarkstegoFileName
- Name of the stego fileorigSigData
- Original signature data
OpenStegoException
public double checkMark(File stegoFile, File origSigFile) throws OpenStegoException
stegoFile
- Stego file from which watermark needs to be extractedorigSigFile
- Original signature file
OpenStegoException
public byte[] generateSignature() throws OpenStegoException
OpenStegoException
public byte[] getDiff(byte[] stegoData, String stegoFileName, byte[] coverData, String coverFileName, String diffFileName) throws OpenStegoException
stegoData
- Stego data containing the embedded datastegoFileName
- Name of the stego filecoverData
- Original cover datacoverFileName
- Name of the cover filediffFileName
- Name of the output difference file
OpenStegoException
public byte[] getDiff(File stegoFile, File coverFile, String diffFileName) throws OpenStegoException
stegoFile
- Stego file containing the embedded datacoverFile
- Original cover filediffFileName
- Name of the output difference file
OpenStegoException
public OpenStegoConfig getConfig()
public static void main(String[] args)
args
- Command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |