Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


CryptoEX library


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2008, 09:41 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,332
Awards Showcase
Forum Contributer 
Total Awards: 1
Default CryptoEX library

This library implements the MD5 Message Digest hash algorithm and also stream and single block DES encryption and decryption. It works fine with itself but I can't guarantee it meets the DES standard as I have no other DES implementation to test it against. However as it uses the .NET DES implementation I would expect it to be OK.

I can't be bothered to write a help file at the moment file but there are some explanatory comments in the examples. Maybe later!

EDIT : Version1.1 posted, see post below.

EDIT : Help file now posted.

EDIT : Version 1.2 posted with updated help included in zip. See post below for details.
Attached Files
File Type: zip CryptoEx1.2.zip (32.0 KB, 42 views)

Last edited by agraham : 05-13-2008 at 04:25 PM.
Reply With Quote
  #2 (permalink)  
Old 05-01-2008, 04:49 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,332
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

OK, so I got carried away with the fun bit . Version 1.1 posted above now does Base64 encoding/decoding, SHA1 and MD5 hashing together with DES, TripleDES, RC2, Rijndael and RSA encryption/decryption. Examples of all attached. Needs .NET 2.0 as the encryption facilities in .NET1.0/1.1 are primitive. Should work on the device as well as the desktop but I haven't fully checked that.

Base64, SHA1 and MD5 results conform to published examples in Wikipedia.

The encryptions all round trip successfully but no guarantees for compatibility interworking with third party data as I can't try that.

Still no help file - I need an enthusiasm transplant to get started on it.
Reply With Quote
  #3 (permalink)  
Old 05-11-2008, 02:35 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,332
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Help file now posted in original post.
Reply With Quote
  #4 (permalink)  
Old 05-11-2008, 05:14 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 575
Default

Hello agraham,

I'll think I must be blind, but I cannot find the help file.
Which is the "original post"


specci48
Reply With Quote
  #5 (permalink)  
Old 05-11-2008, 05:28 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,332
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Sorry, I don't understand how it happened but I posted the wrong zip. I have no idea how the one I posted got there

Correct help file now there (I hope!)
Reply With Quote
  #6 (permalink)  
Old 05-11-2008, 07:59 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 575
Default

I can confirm: The help file is visible (for me) now!
Reply With Quote
  #7 (permalink)  
Old 05-13-2008, 04:32 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,332
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Version 1.2 posted in original post. Changes are to the symmetric alorithms which previously used the default key sizes.

GenerateIV() now added to generate a random intialisation vector for use with block chaining. Existing IV property is used to access it if necessary.

New property BlockSize added to match existing property KeySize, but is not particularly useful as all these algorithms work on fixed block sizes.

New property LegalBlockSizes added to match LegalKeySizes, see below. Again not much use!

New property LegalKeySizes added. TripleDES, RC2 and Rijndael can have variable key sizes. This returns an array giving the max and min keysizes and the size of the steps between them.

EDIT : I've just noticed that the RSAdemo has the bitwise library added. This is a hangover and is not needed so you can remove the library and the bit object.

Last edited by agraham : 05-14-2008 at 03:43 PM.
Reply With Quote
  #8 (permalink)  
Old 07-05-2008, 10:36 AM
Newbie
 
Join Date: Apr 2008
Posts: 2
Default

Wouldn't it be nice to get a Gnupg functionality
Reply With Quote
  #9 (permalink)  
Old 07-05-2008, 11:07 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,332
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by bloxmedia View Post
Wouldn't it be nice to get a Gnupg functionality
I am afraid that won't happen, from me at least!. .NET has a well developed security model which this library partly exposes and I have limited the facilities to those that are available on .NET 2.0 Compact Framework as it's security is a sub-set of the full framework capability.
Reply With Quote
  #10 (permalink)  
Old 07-06-2008, 08:20 AM
Newbie
 
Join Date: Apr 2008
Posts: 2
Default

Do you think we can do anything with this CryptLIb (don't min the price)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 02:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM
CryptoEx and Exceptions manuals are online Erel Announcements 0 05-17-2008 01:20 PM


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0