Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2005, 02:51 PM
Junior Member
 
Join Date: Jun 2005
Posts: 3
Default Problem Loading Encrypted File

I am trying to load an encrypted sting from a file using the code below. The problem is that only a portion of the file will load.

Code:

instream = new StringStream();
content = instream.readFromFile(programfilesfolder+justFilen ame+"\\gameconfig.game");
instream.close();


The encryote file content:

n/2yXKƩEp0[FzjE MШ>zJ^Ԥ 'Ĕ΍s 2hg$)/5'RO)[c1y}kB"⟗I5+7sL}a$(xe =J 3Kˍ^.RCy-]C^.r]'x*<.JEqj MtT!B>+PEҸpTC|P
S-_
eDQvo[3+s%tf %jҩc*YP{Lk
'/!1,!{0KݚuV`Y
@O·dL]WnY%Wj|jJڽCA+lGkX[pf'slE- _wD,.XԂSc & :\Nc;9Y^Ȕ*ZD|_ Hz?nQN(9z\'b A8Ri1ߦqGf6xy'Y~M}6"4 e,
P)-c)\h÷yCz|k<Ba%
/Q:?oPZm&\E2}!}`K )Fʞ.f @ 2m ħ_.2+Q1ɏu8 N`Vr>d $\Y#}uќ*fCZ
(>)9mXg&$ku.WzÇ;n5>t -G _6 -:NZƻddsÐ^)__%e\VW z$@edo
E#$V eüwH{|-rDfhe+p>-Wr55_vL^ K#8a 79 d7.*MQRo1_H 3#Hj>C9K
A0\N[ YzoEG1`g驈Hg=z (\8s ̕bЌ߷#v[]5FDPmY֋CYn_^H87D,* p*щ;޿_\ PWYdwĝrI_+Y,f{
d2JtC?vlj~/!ަ=SEKVl}TJ{}DfIzF ˀgp 0~a]?$:tOoJUl*V߫muhp@8! Wh(؜n#!u@U!DF!&#V1ȫ/胕ʺci;=$>/wVnͥʡ 18LLo &I-';JlRg?M
ݧ
rRa)F⚙کv Rd#iy hIK?`Z ,8&!aN=tZGŧ줚8Ȁ3{L ڥ%^`NU_5Jb*͆.?kA ҸSڴKR֦s4䚪DoAOHzѬo* "TW$^M5`4H F#ZR3X>h,,'p?Ͳ?D71_!¤*a;pϛ 厺Y݄|]qPTcV6l0 
FoeX{=)6v-Ze>e*'M\²D~hU: " &v۲ zƩhaf]U ;* o 9'>`<i6!́vKu<`f `c1,8
Cl?ge,B"Yϵٲ.l.I
l?bY4
̰i` ʐB@iS0Eh cJ2pf֞Fȋ$7ۈN 1ƈMJ8V1aTE`S*_NNŨ_@ IeCaKh=F5ϴ#K
QT(*F94s!P$1u33޵0_,*;=&+ 8~w c*gI>ܢ@fsi!~ʦ=Qw<cvI$ ŋ&x[z\(j(E 0k`2IKnOJ.jpև5iN9~pjU p;h+8͇%{eݬ| n~)gsxU<[D1 x\p_WW*T2|#Jqz nFܲ; xLwzSQ~Kz5w&d))qQ3\,+@ 4*CQMS6߼8-`5;%,v}@/%h*"8 08yRGƕ#+G'o ajmVc΄V|I|ͰN$nt9?pq|X h
h`8%% =S 537HS<Ûg/ৢ ֍kU{`^gȬRCh:^S$ Y^/V6 XL?.>`YhjfvB3;"'.H>̮A? HFZ 3Ftc/V;x<Ff:XQ(E'Ԛ'p>m(kն{' f{xC*eq yJMcG5V|$IwLs+?fZ MP!7yde]5w(Λ-! v }'j{
D޲СzUۥj% `$7Hίx׃kL:Uf
aRC0]Wr.,BfPbʱMp=(O
`/e`{7NҪܩ[7%j"[{CK4C;~&]c戳}€yhzoz`7H7

Reply With Quote
  #2 (permalink)  
Old 06-09-2005, 03:16 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Problem Loading Encrypted File

The StringStream object can retrieve the entire file, but if you convert it to a string, you may get only a partial of the file, for there may be a zero in the file which means the end of a string. So you need to decode the data to a string at first.
Reply With Quote
  #3 (permalink)  
Old 06-09-2005, 04:02 PM
Junior Member
 
Join Date: Jun 2005
Posts: 3
Default Re:Problem Loading Encrypted File

How do I decode the stream to a string.
Reply With Quote
  #4 (permalink)  
Old 06-10-2005, 02:26 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Problem Loading Encrypted File

Please tell us how do you encrypt the file. support@swfkit.com
Reply With Quote
Reply

Was this information helpful?    Yes No



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

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



All times are GMT. The time now is 06:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.