Simple RSA implementation without additional library.