|
static void | encodeImage (String passphrase, PImage img, int format) |
|
static void | decodeImage (String passphrase, PImage img, int format) |
|
|
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) |
|
|
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 } |
|
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
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
-
passphrase | the pass phrase used to decrypt the image |
img | the image to encrypt |
format | either ARGB or RGB |
static void org.quark.stegnos.Encryption.decodeImage |
( |
String |
passphrase, |
|
|
PImage |
img, |
|
|
int |
format, |
|
|
int |
nbcKeep |
|
) |
| |
|
staticpackage |
Decode the retrieved image.
- Parameters
-
passphrase | the pass-phrase or password |
img | the image to encode |
format | image format either RGB or ARGB |
nbcKeep | the 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
-
passphrase | the pass-phrase or password |
d | UTF-8 characters in an int array |
static void org.quark.stegnos.Encryption.encodeImage |
( |
String |
passphrase, |
|
|
PImage |
img, |
|
|
int |
format |
|
) |
| |
|
static |
Encode the image.
- Parameters
-
passphrase | the pass phrase used to encrypt the image |
img | the image to encrypt |
format | either 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
-
passphrase | the pass-phrase or password |
img | the image to encode |
format | image format either RGB or ARGB |
nbcKeep | the 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
-
passphrase | the pass-phrase or password |
d | UTF-8 characters in an int array |
The documentation for this class was generated from the following file:
- /Users/peter/git/steganography-repos/Stenography/src/org/quark/stegnos/Encryption.java