start of RSA encode decode