From http://javadigest.wordpress.com/2012/08/26/rsa-encryption-example/