Package zeroecho.sdk.integrations.stegano
package zeroecho.sdk.integrations.stegano
Steganographic integrations for ZeroEcho SDK.
This package provides abstractions and implementations for hiding and recovering messages in digital images. Steganography allows information to be concealed in carrier media so that its presence is not apparent to a casual observer.
Design principles
- All algorithms implement the
SteganographyMethodinterface, which defines stream-orientedembedandextractoperations and supplies a metadata descriptor. - Supported carrier formats are represented by
ImageFormat. Only lossless formats are suitable for direct bit-level embedding, but some algorithms may also provide support for lossy domains such as JPEG with dedicated techniques. - Methods are designed to operate on
InputStreamandOutputStreampipelines, making them compatible with large files and streaming workflows.
Extensibility
The package is not limited to one specific algorithm. In addition to classic
spatial-domain approaches, implementors can provide methods that operate in
the frequency domain (for example, DCT coefficients for JPEG) or more
advanced hybrid techniques. New methods can be registered by implementing the
SteganographyMethod interface and returning appropriate
StegoMetadata.
Typical workflow
SteganographyMethod method = ...; // e.g. resolved from a registry
try (InputStream carrier = Files.newInputStream(Path.of("cover.png"));
InputStream secret = new ByteArrayInputStream("hello".getBytes(UTF_8));
InputStream stego = method.embed(carrier, ImageFormat.PNG, secret)) {
Files.write(Path.of("stego.png"), stego.readAllBytes());
}
try (InputStream stego = Files.newInputStream(Path.of("stego.png"));
InputStream recovered = method.extract(stego)) {
String text = new String(recovered.readAllBytes(), UTF_8);
}
-
ClassDescriptionEnumeration of image formats supported for steganographic processing.Least Significant Bit steganography implementation operating in the spatial domain.Contract for stream-based steganographic methods.Metadata that describes a steganographic method.