Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crazelu/steganograph
A Dart library for hiding messages in images using Least Significant Bit steganography
https://github.com/crazelu/steganograph
dart least-significant-bit-steganography lsb steganography
Last synced: 3 months ago
JSON representation
A Dart library for hiding messages in images using Least Significant Bit steganography
- Host: GitHub
- URL: https://github.com/crazelu/steganograph
- Owner: Crazelu
- License: apache-2.0
- Created: 2022-05-28T01:38:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T22:58:07.000Z (5 months ago)
- Last Synced: 2024-11-01T18:51:34.921Z (3 months ago)
- Topics: dart, least-significant-bit-steganography, lsb, steganography
- Language: Dart
- Homepage:
- Size: 769 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Steganograph
***
Steganograph is a Dart library which supports hiding mesages in images using Least Significant Bit steganography.## Install 🚀
In the `pubspec.yaml` of your Flutter/Dart project, add the following dependency:
```yaml
dependencies:
steganograph: ^2.0.0
```## Import the package in your project 📥
```dart
import 'package:steganograph/steganograph.dart';
```## Embed messages 🔏
```dart
// this returns an image file with the resulting image unaltered
// except now it has some secret embedded message
File? stegoImageFile = await Steganograph.cloak(
image: File('sample_image.jpg'),
message: 'Some secret message',
outputFilePath: 'result.png',
);
```Or
```dart
Uint8List? stegoImageBytes = await Steganograph.cloakBytes(
imageBytes: Uint8List(...), // cover image byte array
message: 'Some secret message',
outputFilePath: 'result.png',
);
```## Extract embedded messages 📨
```dart
String? message = await Steganograph.uncloak(File('result.png'));// Or
String? message = await Steganograph.uncloakBytes(stegoImageBytes);
```## Supported image formats 🗂
Currently, you can embed messages in:
* PNG
* JPEG
* WebP
* BMP
* GIF
* ICO
* PNM
* PSD## Contributions 🫱🏾🫲🏼
Feel free to contribute to this project.
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an [issue](https://github.com/Crazelu/steganograph/issues).
If you fixed a bug or implemented a feature, please send a [pull request](https://github.com/Crazelu/steganograph/pulls).