Steganos  1.0
Steganography for Processing
 All Classes Functions
org.quark.stegnos.Encryption Class Reference
Inheritance diagram for org.quark.stegnos.Encryption:

Static Public Member Functions

static void encodeImage (String passphrase, PImage img, int format)
 
static void decodeImage (String passphrase, PImage img, int format)
 

Static Package Functions

static void encodeImage (String passphrase, PImage img, int format, int nbcKeep)
 
static void decodeImage (String passphrase, PImage img, int format, int nbcKeep)
 
static void encodeText (String passphrase, int[] d)
 
static void decodeText (String passphrase, int[] d)
 

Additional Inherited Members

- Public Attributes inherited from org.quark.stegnos.SteganosConstants
int TEXT_BURDEN = 0x0
 
int IMAGE_BURDEN = 0x1
 
int RGB = PConstants.RGB
 
int ARGB = PConstants.ARGB
 
int UTF8 = 0x1
 
int[] CARRIER3_BITS = { 0x00000000, 0x00010101, 0x00030303, 0x00070707, 0x000f0f0f, 0x001f1f1f, 0x003f3f3f, 0x007f7f7f, 0x00ffffff }
 
int[] CARRIER4_BITS = { 0x00000000, 0x01010101, 0x03030303, 0x07070707, 0x0f0f0f0f, 0x1f1f1f1f, 0x3f3f3f3f, 0x7f7f7f7f, 0xffffffff }
 
int[] RGB_MERGED_BITS = { 0x00000000, 0xe0000000, 0xfc000000, 0xff800000, 0xfff00000, 0xfffe0000, 0xffffc000, 0xfffff800, 0xffffff00 }
 
int[] ARGB_MERGED_BITS = { 0x00000000, 0xf0000000, 0xff000000, 0xfff00000, 0xffff0000, 0xfffff000, 0xffffff00, 0xfffffff0, 0xffffffff }
 

Detailed Description

This class provides a number of methods used internally by the library to encrypt / decrypt images and text. The image methods are the only ones made public to the library user.

Author
Peter Lager

Member Function Documentation

static void org.quark.stegnos.Encryption.decodeImage ( String  passphrase,
PImage  img,
int  format 
)
static

Decode the image.
The passphrase and format must match the ones used to encrypt the image originally.

Parameters
passphrasethe pass phrase used to decrypt the image
imgthe image to encrypt
formateither ARGB or RGB
static void org.quark.stegnos.Encryption.decodeImage ( String  passphrase,
PImage  img,
int  format,
int  nbcKeep 
)
staticpackage

Decode the retrieved image.

Parameters
passphrasethe pass-phrase or password
imgthe image to encode
formatimage format either RGB or ARGB
nbcKeepthe number of bits per channel being kept
static void org.quark.stegnos.Encryption.decodeText ( String  passphrase,
int[]  d 
)
staticpackage

Decode the text retrieved from the image.

Parameters
passphrasethe pass-phrase or password
dUTF-8 characters in an int array
static void org.quark.stegnos.Encryption.encodeImage ( String  passphrase,
PImage  img,
int  format 
)
static

Encode the image.

Parameters
passphrasethe pass phrase used to encrypt the image
imgthe image to encrypt
formateither ARGB or RGB
static void org.quark.stegnos.Encryption.encodeImage ( String  passphrase,
PImage  img,
int  format,
int  nbcKeep 
)
staticpackage

Encode the image to hide.

Parameters
passphrasethe pass-phrase or password
imgthe image to encode
formatimage format either RGB or ARGB
nbcKeepthe number of bits per channel being kept
static void org.quark.stegnos.Encryption.encodeText ( String  passphrase,
int[]  d 
)
staticpackage

Encode the text to hide.

Parameters
passphrasethe pass-phrase or password
dUTF-8 characters in an int array

The documentation for this class was generated from the following file: