Topaz Filer: if you use e-mail for business, we can save you money and decrease your risk.
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...
 
Auto-following on Twitter
Ubuntu and XP on one “desktop”
 
    
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...
 
Outlook interop - stopping user properties appearing on Outlook message print
Seriously, why is “cut and paste” majorly newsworthy???
 
    
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




Ad
BootFX
Reliable and powerful .NET application framework.
Recession Busting Bespoke Software
Get through the recession by investing in bespoke software to decrease costs and create commercial opportunities.
Other DN247 Network Sites
.NET 247
SQL Server Wins
Old Skool Developer
 
Copyright © AMX Software Ltd 2008-2009. Portions copyright © Matthew Baxter-Reynolds 2001-2009. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - .NET 247 is a member of the DN247 Network - 4.0.30129.1734