|
||||||||||
| 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 | |
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) |
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) |
OpenStegoConfig |
getConfig()
Get method for configuration data |
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 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
OpenStegoExceptionpublic OpenStegoConfig getConfig()
public static void main(String[] args)
throws OpenStegoException
args - Command line arguments
OpenStegoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||