Took original code and license from http://www-cs-students.stanford.edu/~tjw/jsbn/