png-stenography
v1.0.1
Published
Hide your message or file into PNG picture
Readme
NodeJS PNG Stenography
Hide your message or file into PNG picture!
Hide text message into picture
//Encode
let input = await Stenography.openPNG('input.png');
await input.encode('My Message').saveToFile('output.png');
//Decode
let output = await Stenography.openPNG('output.png');
let message = output.decode(); //My MessageHide encrypted message into picture
let key = 'My AES Key';
//Encode
let input = await Stenography.openPNG('input.png');
await input.encodeWithKey(key, 'My Message').saveToFile('output.png');
//Decode
let output = await Stenography.openPNG('output.png');
let message = output.decodeWithKey(key); //My messageHide file into picture
//Encode
let input = await Stenography.openPNG('input.png');
await input.encodeFile('data.zip').saveToFile('output.png');
//Decode
let output = await Stenography.openPNG('output.png');
output.decodeFile('result.zip');Hide encrypted file into picture
let key = 'My AES Key';
//Encode
let input = await Stenography.openPNG('input.png');
await input.encodeFileWithKey(key, 'data.zip').saveToFile('output.png');
//Decode
let output = await Stenography.openPNG('output.png');
output.decodeFileWithKey(key, 'result.zip'); 