Skip to content

Instantly share code, notes, and snippets.

View vladfrangu's full-sized avatar
🛠️
Writing & Breaking Code

Vlad Frangu vladfrangu

🛠️
Writing & Breaking Code
View GitHub Profile
@vladfrangu
vladfrangu / simple-nodejs-iv-encrypt-decrypt.js
Created April 26, 2018 14:06 — forked from yoavniran/simple-nodejs-iv-encrypt-decrypt.js
nodejs crypto - simple encrypt & decrypt using IV (Initialization Vector)
"use strict";
var crypto = require("crypto");
var EncryptionHelper = (function () {
function getKeyAndIV(key, callback) {
crypto.pseudoRandomBytes(16, function (err, ivBuffer) {
var keyBuffer = (key instanceof Buffer) ? key : new Buffer(key) ;
@vladfrangu
vladfrangu / LICENSE.txt
Created December 28, 2017 21:49 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE