0.0.1 • Published 7 years ago
steganographie v0.0.1
Steganographie
About
This is currently a quite simple steganography library, allowing to conceal and reveal messages in pictures. There is currently only support for .png pictures, but I'm working on it.
Installation
npm install steganographie
Usage
Conceal function is used to compute the new picture containing the concealed message specified.
steganographie.conceal({
input: 'absolute/path/to/img_source.png',
output: 'absolute/path/to/img_conceal.png',
method: 'simple',
text: 'Super secret message, is the NSA looking for me?',
}, (err, res) => {
if(err) {
console.log('Hmm, there is an error with conceal: ');
}
console.log(res);
});
Reveal function is used to extract a message from a picture.
steganographie.reveal({
input: 'absolute/path/to/img_conceal.png',
method: 'simple'
}, (err, res) => {
if(err) {
console.log('Hmm, there is an error with reveal: ');
} else {
var message = res;
}
});
0.0.1
7 years ago