RSA key function works now careful with modifying it if you dont know how it works