Toy RSA implementation