Skip to content

Instantly share code, notes, and snippets.

View MysterionRise's full-sized avatar

Konstantin Perikov MysterionRise

View GitHub Profile
const PNG = require('png-js');
const maxMessageSize = 2000;
function decode(path) {
const hash = [-474954686, -1728308204, -1694763832, -1720731356, 665731556, 1687917388, -1533699813, 2018687061]
PNG.decode(path, (pixels) => {
const message = decodeMessage(pixels, hash)
console.log(message)
})