No, I believe the algorithm translates a character at a time. The "a" character in "table" is translated to Char(13) i.e. carriage return. My code enters it into the Access table OK but when I view the field on the Palm it doesn't appear. Apparently the Satellite Forms synchronisation process removes the character during the synchronisation process.
Anyone got any ideas? Colin -----Original Message----- From: Jonathan Mackenzie [mailto:[EMAIL PROTECTED] Sent: 05 March 2004 17:31 To: Palm Developer Forum Subject: RE: encryption/decryption Palm Database Is it possible that the encryption algorithm works in multiples of 8 bytes? You might fix this by space padding the cleartest to the next 8-byte boundary. - Jonathan. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Colin MacKenzie Sent: Friday, March 05, 2004 8:28 AM To: Palm Developer Forum Subject: RE: encryption/decryption Palm Database I have implemented encryption on the palm device using code previously posted by Alan Ingleby that utilised the RC4 algorithm. I encrypt some text on the client using VB code I obtained from an open source website, then I decrypt it on the Palm. I encrypted the message: "This should work now we are encrypting the correct table" Transferred it to the Palm and decrypted it, I got: "This should work now we are encrypting the correct tx1/4Wr" Put in: "This should work now we are encrypting the correct table should it not" Back out: "This should work now we are encrypting the correct tx1/4eWi?olv%$3�etc" Some other longer messages have encrypted without a problem so its not hitting the problem after a certain number of digits. One possibility is that the 2 implementations are not exactly the same but if this was true I'd be more likely to get gibberish all the way through, wouldn't I? I wonder if the protocol used to transfer the encrypted string does not like one of the characters generated, and screws everything up once it hits it? I am using Satellite Forms, so the encryption is done in an Access mdb file and transferred back to the device using a call to Satellite Form's API Can anyone suggest a solution? Colin -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
