1.0.1 • Published 8 months ago

png-stenography v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

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 Message

Hide 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 message

Hide 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'); 
1.0.1

8 months ago

1.0.0

8 months ago