Skip to content

Instantly share code, notes, and snippets.

@Roman2K
Roman2K / node.js
Created September 29, 2012 18:22
Ruby/node encryption/decryption
const crypto = require('crypto');
const PASSWORD = "098f6bcd4621d373cade4e832627b4f6"
, MESSAGE = 'test';
function InvalidSignatureError() {
Error.captureStackTrace(this, this.constructor);
}
function encipher(message, password, callback) {