Skip to content

Instantly share code, notes, and snippets.

View alesmit's full-sized avatar

Alessandro Mitelli alesmit

View GitHub Profile
@snehesht
snehesht / AES Counter-mode implementation in JavaScript.js
Created March 21, 2015 15:47
AES Implementation in JavaScript
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* AES Counter-mode implementation in JavaScript (c) Chris Veness 2005-2014 / MIT Licence */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* jshint node:true *//* global define, escape, unescape, btoa, atob */
'use strict';
if (typeof module!='undefined' && module.exports) var Aes = require('./aes'); // CommonJS (Node.js)
/**