Code Refactorization and fixed RSA Public Key Length