Multimobile Development: Building Applications for any Smartphone
Secret-Key Encryption in .NET CF
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.compactframework.


Wan Zeng
Hi, I am learning data encryption, and I have couple of quesitons need
some immediate help. Thanks in advance.

1. Amond all the Secret-Key Encryption methods implimented in .NET
framework, I think Rijndael is the best to use. Can anyone verify
this for me?

2. I understand the System.Security.Cryptography is not available in
MS .NET CF. I found OpenNETCF implimented similar functionalities,
but it seemes Rijndael is not completely impliment? Is this true?
otherwise, can anyone provide a snipet of the sample code on how to
use Rijndael implimented in OpenNETCF?

Any help is appreciated. Thanks.

Wan
Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
casey chesnut
Rijndael is not currently in OpenNETCF.
i will put out an article about Rijndeal in CF in a couple weeks.
(also, Rijndael will be in CF v2 for Whidbey)
the next best one is TripleDES.

use it something like this:
TripleDESCryptoServiceProvider tdcsp = new TripleDESCryptoServiceProvider();
//set a 24 byte key (or use random)
//the IV is 8 bytes (you might need to set that to 8 random bytes)
tdcsp.Key = sharedKey;
byte [] cipher = tdcsp.EncryptValue(data);
byte [] clear = tdcsp.DecryptValue(cipher);

Thanks,
casey
http://www.brains-N-brawn.com

"Wan Zeng" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
    
Wan Zeng
Thanks Casey, for clarigy this for me. and your sample code.
Reply to this message...
Vote that this is a GOOD answer...
 
 
 
System.Security.Cryptography.TripleDES
System.Security.Cryptography.TripleDESCryptoServiceProvider




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734