|
|||
|
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!! ??? :-[ |
|
|||
|
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 ??? |
|
|||
|
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? |
|
|||
|
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. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|