first of all all of the work here is being done by a script written and copyrighted by Chris Veness from "http://www.movable-type.co.uk/scripts/aes.html" it is under the LGPL http://www.fsf.org/licensing/licenses/lgpl.html so I used AES implementation in JavaScript (c) Chris Veness 2005-2008