upgraded to crypto js 3.1.2
refactored rsa implementation