Hello,
While I was working on some encryption classes, I found that displaying
a ciphertext in an Editfield, and then trying to decrypt the
Editfield.Text would fail, whereas the same encryption/decryption would
work if the intermediate ciphertext was _not_ displayed (e.g. only kept
in a String property somewhere).
The ciphertext, coming from a Memoryblock (ciphertext = m.Stringvalue
...), has no encoding. When I write cipherField.Text = ciphertext, it
seems that RB applies the default UTF-8 encoding, which is fine with me.
What I don't understand is that it seems that the data is somehow
changed : if I now try to decrypt cipherField.Text, I get a checksum
error and garbage.
Can someone explain ?
Thanks,
Laurent Vidonne
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|