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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StegoAlgoLSBpp
public StegoAlgoLSBpp()
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 filteringw
- Picture's widthh
- 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 widthh
- Picture's height
- Returns:
- The
ImageFilter
that does all the work.