Skip to content

in4in-dev/png-stenography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS PNG Stenography

Hide your message or file into PNG picture!

Hide text message into picture

npm i png-stenography
//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'); 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published