|
|||
|
Please read the whole post to understand my problem... Thanks
---------------------------------------------------------- The problem is as follows: myfile.xml contains: <question no="1" type="2"> <quest>This is the first question</quest> <options><a>True</a><b>False</b> </question> ---------------------------- I encrypt this text using SWFKit....(apply my own algo to enc/dec) 1. I read myfile.xml 2. encrpt it using my algo. 3. save the encrypted text into myfile.enc Now I find myfile.xml as myfile.enc having data look like a garbage data... but worthfull to me. Now i read this file back.... reverse my algorithm to decrypt the data found in myfile.enc back to readable text as myfile2.xml But when i do this... i get garbage with the original text which looks like: <question?no=?????? type=??????> <quest>This?is?the?fi?st?quest?on<?quest> <options><a>True<?a><b>Fal?e<?b> <?question> I test my algo which works fine.... when i enc the data and hold it in a swfkit variable and then dec it at the same time.. i get 100% accurate data.. but when i save the file on the hard drive at some location... i get above out put... Well I 've figured it out myself... as i am using FileStream Object to read and save the files..... which may be the real cuase of the problem... as i get by it.... following things i dont get back in original form after saving and then retrieving the data from the file: 1. Numbers 2. Special Characters. Is there any possible way to save the encrpyted data and then get back it in its original file....??? I am waiting for response.. if somebody knows.... Thanks
__________________
SWFBaz Preview [October 2006] http://www.SWFBaz.com |
|
|||
|
Please send a sample to support@swfkit.com, thank you.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|