Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > General > Chit Chat
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.


Encrypting, decrypting - any better idea how to work with file?


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 08-31-2008, 10:40 PM
Newbie
 
Join Date: Aug 2008
Posts: 5
Default UTF-8 supported in encryptions ?

Thanks again for your suggestions. Before going too far, I experimented with the demo code of Rijndeal and DES. I substituted the line 41. test="01234567890abcdefg" with a string using French accents "Hélène est très belle" only to find the MSG did not return the accented characters. Further, I wrote the same string (str) to the TextBox1 of the form1 with the same result.

Sorry, I'm new to this. Could you explain how to work around this apparent UTF-8 incompatibility ?

Thanks for your patience.
Reply With Quote
  #12 (permalink)  
Old 09-01-2008, 09:38 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Gapple View Post
Sorry, I'm new to this. Could you explain how to work around this apparent UTF-8 incompatibility ?
Use DecryptString which is commented out in the demos. I've just noticed that there is a typo in the DecryptString line, it omits the buffer parameter. It should read
Code:
str = Des.DecryptString(code())
EDIT:- Note that the problem is one of display, not a decryption problem. Encrypt string knows about UTF8 and so does DecryptString. Just displaying the decoded UTF8 bytes as characters looks wrong but is in fact correct and also shows the string padding referred to in the comments.

Last edited by agraham : 09-01-2008 at 09:46 AM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error on decrypting a phrase Raytracer Questions & Help Needed 3 08-22-2008 04:41 PM
Just an idea ..... Scubaticus Forum Discussion 3 07-20-2007 03:56 PM
Give me an idea conf Questions & Help Needed 6 07-03-2007 07:18 PM
Encrypting and Decrypting XerVision Questions & Help Needed 1 06-16-2007 05:42 PM
SetPixel do no work Put Claude Questions & Help Needed 1 05-14-2007 06:21 AM


All times are GMT. The time now is 04:27 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0