trex.Algo
Class StegoAlgoLSBpp

java.lang.Object
  |
  +--trex.Algo.StegoAlgo
        |
        +--trex.Algo.StegoAlgoRGB
              |
              +--trex.Algo.StegoAlgoLSB
                    |
                    +--trex.Algo.StegoAlgoLSBpp

public class StegoAlgoLSBpp
extends StegoAlgoLSB

This class adds a (very little) bit of security to the LSB algorithm by XORing every input character with a character from the passphrase.

Version:
$Revision: 1.7 $
Author:
Bastian Friedrich <bastian@bastian-friedrich.de>

Nested Class Summary
protected  class StegoAlgoLSBpp.LSBppDecryptFilter
          This class adds the XOR functionality to the "getData" function.
 
Nested classes inherited from class trex.Algo.StegoAlgoLSB
StegoAlgoLSB.LSBEncryptFilter
 
Field Summary
 
Fields inherited from class trex.Algo.StegoAlgo
passPhrase
 
Constructor Summary
StegoAlgoLSBpp()
           
 
Method Summary
 TRexFilterRGB getDecryptFilter(int w, int h)
          Return a decrypt filter for this algorithm.
protected  TRexFilterRGB getEncryptFilter(String data, int w, int h)
          Return an encrypt filter for this algorithm (identical to LSB) and XOR data with pass phrase beforehand.
 String getInfo()
          Return an info string about this algorithm.
 boolean hasPassPhrase()
          Return true.
 
Methods inherited from class trex.Algo.StegoAlgoLSB
getConfigDialog, hasConfigDialog, pictureLargeEnough, validConfig
 
Methods inherited from class trex.Algo.StegoAlgoRGB
defaultAmplification, getDecrypted, getEncrypted
 
Methods inherited from class trex.Algo.StegoAlgo
setPassPhrase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StegoAlgoLSBpp

public StegoAlgoLSBpp()
Method Detail

hasPassPhrase

public boolean hasPassPhrase()
Return true.

Overrides:
hasPassPhrase in class StegoAlgoLSB
Returns:
false.

getInfo

public String getInfo()
Return an info string about this algorithm. Contains the algorithm's name.

Overrides:
getInfo in class StegoAlgoLSB
Returns:
"Least significant bit algorithm, XORing pass phrase".

getEncryptFilter

protected TRexFilterRGB getEncryptFilter(String data,
                                         int w,
                                         int h)
Return an encrypt filter for this algorithm (identical to LSB) and XOR data with pass phrase beforehand. Actually called by "virtual" method StegoAlgoRGB.getDecrypted(javax.swing.ImageIcon).

Overrides:
getEncryptFilter in class StegoAlgoLSB
Parameters:
data - Data to hide while filtering
w - Picture's width
h - Picture's height
Returns:
The ImageFilter that does all the work.

getDecryptFilter

public TRexFilterRGB getDecryptFilter(int w,
                                      int h)
Return a decrypt filter for this algorithm. Actually called by "virtual" method StegoAlgoRGB.getDecrypted(javax.swing.ImageIcon).

Overrides:
getDecryptFilter in class StegoAlgoLSB
Parameters:
w - Picture's width
h - Picture's height
Returns:
The ImageFilter that does all the work.