Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2008, 09:25 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Some solution for encryption problem

Im using encryption allover my project.
i have php looking for exakt matches from database when flash requests that.
now i discovered a huge problem that could jeopardize entire project (nearly 3 months job)

When i use blowfish encoding, it encodes words with small letter entirely diffirent than same word with big letter.

Key: 123
String: Snapz
Results: FWXMxKTpsxM=

Key:123
String: snapz
Results: nWP7RHrBSs4=

Is there ANY way to fix it ? so big and small letters wont have diffirent outputs ??? Its only in one sql table i need this fix.

If its impossible then my 3 months work is in BIG trouble!! ??? :-[
Reply With Quote
  #2 (permalink)  
Old 01-23-2008, 01:02 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Some solution for encryption problem

I also have another problem here.

All data sent to php is encoded with blowfish... but when i get data back to flash... to my datagrid, o get nothing with

Encryption.blowfishDecode("mykey", r.result);

All data that should be in datagrid is encoded with same key that im trying to decode with.

how to fix it ???
Reply With Quote
  #3 (permalink)  
Old 01-23-2008, 01:14 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Some solution for encryption problem

Before encoding the a word, you can first use the "String.toLowerCase" to convert it to lowercase, so that you can get unique results for both "Snapz" and "snapz". About the second question, can you give more details? Do you mean that r.result returns nothing?
Reply With Quote
  #4 (permalink)  
Old 01-23-2008, 05:11 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Some solution for encryption problem

Thanx! good idea, i never thought about it.

about my secod question.

im using amfphp with my application. much easier to send and receive data than with plain php

r.result is what my flash is getting from amfphp. r.result is r:resultEvent

so in other words its a object, containing some information. in my case it conaint a list of usernames where each and one of them have been encoded with blowfish while registering.
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 04:54 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.