private string GetRegisterResponse(Register registerMessage, byte[] AESKey) { var response = AESWrapper.BytesToString(AESKey); var encryptedResponse = RSAWrapper.Encryption(response, registerMessage.Modulus, registerMessage.Exponent); return(encryptedResponse); }