Beispiel #1
0
        public void Display(StoredMessage selectedMessage)
        {
            if (selectedMessage?.Body?.Text != null)
            {
                var bytes          = Encoding.Default.GetBytes(selectedMessage.Body.Text);
                var decryptedBytes = messageEncoder.Decrypt(bytes);
                var clearText      = Encoding.Default.GetString(decryptedBytes);

                view?.Show(clearText);
            }
        }