Class AsciiRgbCipher
java.lang.Object
com.github.bloodshura.ignitium.steganography.AsciiRgbCipher
- All Implemented Interfaces:
Cipher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canEncode
(Image image, CharSequence sequence) boolean
canEncodeData
(Image image, byte[] data) byte[]
decodeData
(Image image) protected void
protected void
doEncode
(Image image, int supplierLength, IntFunction<Byte> supplier) void
encode
(Image image, CharSequence sequence) void
encodeData
(Image image, byte[] data) byte[]
getMagic()
boolean
int
maxDataLength
(Image image) void
setMagic
(byte... magic)
-
Constructor Details
-
AsciiRgbCipher
public AsciiRgbCipher()
-
-
Method Details
-
canEncode
-
canEncodeData
- Specified by:
canEncodeData
in interfaceCipher
-
decode
- Specified by:
decode
in interfaceCipher
- Throws:
SteganographyException
-
decodeData
- Specified by:
decodeData
in interfaceCipher
- Throws:
SteganographyException
-
encode
public void encode(@Nonnull Image image, @Nonnull CharSequence sequence) throws SteganographyException - Specified by:
encode
in interfaceCipher
- Throws:
SteganographyException
-
encodeData
- Specified by:
encodeData
in interfaceCipher
- Throws:
SteganographyException
-
getMagic
-
isEncoded
-
maxDataLength
-
setMagic
-
doDecode
protected void doDecode(@Nonnull Image image, @Nonnull Consumer<Byte> consumer, boolean stopOnMagic) throws SteganographyException - Throws:
SteganographyException
-
doEncode
protected void doEncode(@Nonnull Image image, int supplierLength, @Nonnull IntFunction<Byte> supplier) throws SteganographyException - Throws:
SteganographyException
-