ghost_pixel 1.0.3
ghost_pixel: ^1.0.3 copied to clipboard
Your data remains secure as it is seamlessly embedded into the image. Even when viewing the image, no one will suspect that it contains hidden information.
example/ghost_pixel_example.dart
import 'dart:io';
import 'package:ghost_pixel/ghost_pixel.dart';
void main() async {
final imagePath = 'yourPath.jpg';
final filePath = 'yourPath2.txt';
final outputImagePath = 'yourPath3.jpg';
final extractedFilePath = 'yourPath4.txt';
await GhostPixel.hideFileInImage(
imagePath: imagePath,
filePath: filePath,
outputImagePath: outputImagePath,
);
await GhostPixel.extractFileFromImage(
imagePath: outputImagePath,
outputFilePath: extractedFilePath,
fileSize: File(filePath).lengthSync(),
);
}