![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi All, just wondering if anyone knows which encryption algorithm is used in the Crypto library?
I need to know: The cipher, the number of bits used (64/128/256?), the padding method used (EBC, CBC, etc). I'm encrypting data to send to php on a web server, and I can't decrypt the data unless i know these things. Thank for your help! Andy. |
|
||||
|
The Crypto library is based on this article and code example: http://www.codeproject.com/netcf/SecureStore.asp
I think you can find your answers there. |
|
|||
|
Thanks guys, that will be of help.
I have decided to use V2 of the compact framework, as the SQLite library is just too nice. PHP supports SQLite V3 natively, which means i can invoke a web url, get php to build a SQLite database, and then download it to the device... very easy syncronisation. I need encryption because I want to encrypt the authentication / login details for each user when they request a database to be built. I may also encrypt the database itself before transit. I may write my own library as you've suggested, and if I do I'll release it for everyone else. The only problem is that I am using SharpDevelop, which builds "desktop" dll's fine, but not compact. Perhaps I can release the code and have someone else build the compact edition version :-) As for the screen resolution issue, no I still haven't figured that out. For now I'm writing with the default screen size and testing just on the windows version. I can also use the emulator. The AXIM is actually honoring the screen size settings of the IDE.. strange hey. Anyway, thanks for your help as always. I was really impressed with just how easy it was to invoke a URL and download a file with the HTTP library - the functions were already written! Gotta love cut n paste :-) Andy. |
|
|||
|
Hi Erel, thanks for the link. Just to confirm:
* You're using RC2, 128 bit. * The secret key passed to the crypto library is hashed with the md5 algorithm, and you're then using the first 40 characters of the hash to use as the encryption key. Is that right? Also, is there a base64 encode / decode class library? I will need to encode the encryption result before passing it in my URL. My url will be something like: http://www.mysite.com/rmi.php?userna...ase64encrypted Cheers, Andy. |
|
||||
|
Quote:
How to create a Basic4ppc library |
|
||||
|
It must be a device thing.
Doesn't matter what settings I alter in SharpDevelop. .NET, 1.1, 2.0, Net Framework etc, the compiled DLL's work on the Desktop but not my device. Strange, works for CableGuy ![]()
__________________
Endemol ![]() Waste of space ![]() O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1 http://www.taximania.net |
|
||||
|
Hi,
Actually I use both tools (VS2005 & #develop). VS is a better tool in general, but #develop has 2 advantages for this forum. Using it you can easily switch between various frameworks (including Mono Project) and posting the source code, someone can without the need to pay enything to use it. Of course you can compile for .NETCF but .NETCF 1.0 SDK does not exists out of VS (2003 & 2005) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help understanding Crypto | tsteward | Questions & Help Needed | 1 | 09-15-2008 02:23 PM |
| Crypto error | Raytracer | Questions & Help Needed | 4 | 07-31-2008 12:39 PM |
| Crypto Error | Raytracer | Italian Forum | 0 | 07-30-2008 04:39 PM |
| Easter Day (calculation algorithm) | maXim | Code Samples & Tips | 2 | 03-19-2008 05:01 PM |
| Crypto library was updated - 1.10 | Erel | Announcements | 2 | 10-19-2007 08:44 AM |