F5-StegSharp is a lightweight and efficient C# library providing seamless integration of the F5 steganography algorithm in .NET applications. Supports baseline color JPEG images, each step in baseline jpeg encoding, matrix encoding, and adaptive embedding. Ideal for secure data transmission through image files.
- Implementation of each step in baseline jpeg compression. This includes:
- Color space conversion (RGB -> YCbCr)
- 2-D Discrete Cosine Transformation
- Quantization
- Run-Length Encoding
- Huffman encoding
- Implementation of F5 steganography algorithm for hiding and extracting messages
- Matrix encoding and adaptive embedding for improved robustness
- Permutative Straddling for dispersing coefficient changes
Install the NuGet package using the Package Manager Console: PM> Install-Package Grizlah.Steganography.F5.Infrastructure
Or search for F5-StegSharp
in the NuGet Package Manager in Visual Studio.
After installing the package, register the library's services in your DI container:
public void ConfigureServices(IServiceCollection services)
{
services.AddF5Services();
}
using StegSharp.Application.Common.Interfaces;
// ...
var stegoService = serviceProvider.GetService<IF5Service>();
stegoService.Embed(image, "password", "Your Secret message", binaryWriter);;
// ...
using StegSharp.Application.Common.Interfaces;
var stegoService = serviceProvider.GetService<IF5Service>();
string message = stegoService.Extract("password", binaryReader);;
This project is licensed under the MIT License.
If you encounter any issues or have questions, please open an issue on the GitHub repository.