realbasic-nug
[Top] [All Lists]

Editfield and text encoding question

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Editfield and text encoding question
From: Laurent Vidonne <list dot reader at asialogique dot com>
Date: Wed, 31 Aug 2005 18:04:09 +0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Organization: Asia Logique Ltd.
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>

<Prev in Thread] Current Thread [Next in Thread>