Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
My First Playground
node v4.9.1
version:
master
endpoint
share
tweet
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