My First Playground

node v4.9.1
version: master
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const buf = Buffer.from("AutMdzthDvPlE+UnhcHa2h4UZGPdme7t", 'base64'); console.log(buf.length); const keyBytes = Buffer.from('2270457870', 'utf8'); console.log(keyBytes.length); const decipher = require('crypto').createDecipheriv('bf-ecb', keyBytes, Buffer.alloc(0)); const buffers = []; buffers.push(decipher.update(buf)); buffers.push(decipher.final()); const newBytes = Buffer.concat(buffers); console.log(newBytes.length); console.log(newBytes);
Loading…

no comments

    sign in to comment