steganograph 2.0.0 copy "steganograph: ^2.0.0" to clipboard
steganograph: ^2.0.0 copied to clipboard

A Dart library which supports hiding data in images using LSB steganography.

example/main.dart

import 'dart:io';
import 'package:steganograph/steganograph.dart';

void main() async {
  final file = await Steganograph.cloak(
    image: File('example/assets/scribble.png'),
    message: "Insert some really top secret message here!",
    outputFilePath: 'example/assets/result.png',
  );

  final embeddedMessage = await Steganograph.uncloak(File(file!.path));

  print(embeddedMessage);

  final coverImage = File('example/assets/scribble.png');
  final coverImageBytes = await coverImage.readAsBytes();

  final stegoImageBytes = await Steganograph.cloakBytes(
    imageBytes: coverImageBytes,
    message: 'Some other secret message',
  );

  final message = await Steganograph.uncloakBytes(stegoImageBytes!);

  print(message);
}
11
likes
150
points
129
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart library which supports hiding data in images using LSB steganography.

Repository (GitHub)
View/report issues

Topics

#steganography

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

image, meta

More

Packages that depend on steganograph