Library API

The library has a very simple API which is shown here. For more detailed information aee the library reference.

Creating the stegan
Steganos.embedImage(String pphrase, PImage carrier, PImage burden);
Steganos.embedText(String pphrase, PImage carrier, String burden)

The first parameter is the pass phrase (password) used to encrpyt the burden, followed by the carrier iamge and finally the burden, be it image or text.
Extracting the burden from a stegan
Steganos.extractImage(String pphrase, PImage stegan);
Steganos.extractText(String pphrase, PImage carrier, String burden)

The first parameter is the pass phrase (password) used to decrpyt the burden once it has been extracted from the stegan. These methods return a PImage or String object respectively.
Analysing a potential carrier / burden pair
Steganos.analyze(PImage carrier, PImage burden);
Steganos.analyze(PImage carrier, String burden)

Both these return an Analysis object. The Analysis class has two public attributes
boolean approved : true if these will create a stegan.
String text : textual description of the analysis results.

Encrypting / decrpting an image
Encryption.encodeImage(String passphrase, PImage img, int format)
Encryption.decodeImage(String passphrase, PImage img, int format)

These two methods are used to encrypt and decrypt an image. These methods are used by the library and have been made available to the user. The last parameter should be ARGB or RGB