Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P 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, 10:41 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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.

EDIT : Version 1.3 posted with source. See post #12 below for details.

EDIT : Version 1.4 posted with source. See post #14 below for details.
Attached Files
File Type: zip CryptoEx1.4.zip (49.1 KB, 110 views)

Last edited by agraham : 07-28-2010 at 12:27 PM.
Reply With Quote
  #2 (permalink)  
Old 05-01-2008, 05:49 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 03:35 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Help file now posted in original post.
Reply With Quote
  #4 (permalink)  
Old 05-11-2008, 06:14 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 06:28 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 08:59 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I can confirm: The help file is visible (for me) now!
Reply With Quote
  #7 (permalink)  
Old 05-13-2008, 05:32 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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 04:43 PM.
Reply With Quote
  #8 (permalink)  
Old 07-05-2008, 11:36 AM
Junior Member
 
Join Date: Apr 2008
Posts: 15
Default

Wouldn't it be nice to get a Gnupg functionality
Reply With Quote
  #9 (permalink)  
Old 07-05-2008, 12:07 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 09:20 AM
Junior Member
 
Join Date: Apr 2008
Posts: 15
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
CryptoEx - I'm missing something here :( LineCutter Questions (Windows Mobile) 4 10-12-2008 01:23 PM
CryptoEx and Exceptions manuals are online Erel Announcements 0 05-17-2008 02:20 PM


All times are GMT. The time now is 12:50 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0