RSA tools code