UNPKG

node-bury

Version:

A cryptographic and steganographic image library for nodejs.

18 lines (13 loc) 498 B
var Bury = require('./bury.js'); var options = { enableRed: true, enableGreen: true, enableBlue: true, //compress: false, TODO: This option is still broken in the JS version... visibleResult: false, rescaleCarrier: true }; var test_image = new Bury('./test_carrier.jpg', 'saddroPs', options); // Encrypting a text message... test_image.setMessage('This is the worst green-text on the whole internet.'); console.log(test_image.outputImage('./test_output.png'));