Dr. Volkan Tunalı's Personal Blog

Computer, Technology, Science, Art

Archive for the ‘programming’ tag

Cryptography Classes for .NET Compact Framework

3 comments

You may know that System.Security.Cryptography for Compact Framework lacks many cryptography algorithms compared to the desktop .Net Framework (2005 and later). In a project we have needed SHA512 encryption on Windows CE and we have found /cfAes library which provides almost all of the crypto functionality of .NET Framework. We are grateful to the author for sharing the class library.

The following table displays a comparison between the versions of .Net Framework with respect to the support for different crypyography algorithms (X means that it is supported, 0 means partially supported).

Crytpo Algorithm .NET 2003 OpenNETCF 1.2 /cfAES WSE 2.0 CF 2.0 .NET 2005
MD5 X X X X X
SHA1 X X X X X
SHA256 X X X
SHA384 X X X
SHA512 X X X
MACTripleDES X 0 X X
HMACSHA1 X X X X X
PasswordDeriveBytes X 0 X X
RC2 X X X X X
DES X X X X X
TripleDES X X X X X X
Rijndeal X X X X
RSA X X X X X X
DSA X X X X X
RIPEMD160 X X
HMACMD5 X X
HMACSHA256 X X
HMACSHA384 X X
HMACSHA512 X X
HMACRIPEMD160 X X
Rfc2898DeriveBytes X X
ProtectedData X X
ProtectedMemory X X
PSHA1 X X
AESKeyExchangeFormatter X X
TripleDesKeyExchangeFormatter X X
SecureString X X



You can download the source code of the library here.

Written by Volkan TUNALI

November 10th, 2010 at 11:56 am

Beautiful Code

leave a comment

Beautiful CodeEvery programming language I’ve learned, every code sample I’ve inspected, and every algorithm I’ve analyzed have contributed to my knowledge and aptitute of programming very much, and have helped me extend my vision about software development. I always find articles and books written on programming very precious opportunities for self development.

Published by O’Reilly, Beautiful Code, is a special book in which important names from the software development community tell their stories about developing simple, elegant, and powerful programs.

I recommend this book to anyone who takes programming as an art besides its technical part, and who are willing to develop themselves to write better programs.

A little excerpt from the book:

A designer knows he has achieved perfection not when there is nothing left to add, but
when there is nothing left to take away. (Saint-Exupéry)

Written by Volkan TUNALI

June 26th, 2010 at 11:34 am