Program generates now key pair and checks if decryption is same as original