Re: Cryptography on .net CF

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



There is no such class as RC4 in either the full framework or CF.

Regards
Simon.

"Wrecked" <rithesh.rg@xxxxxxxxx> wrote in message
news:1153816965.557697.178920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Simon,
Thanks a lot for that info. I upgraded my project to 2.0 and
its working fine now. It would also be very kind of you if u could let
me know if RC4 (again its cryptography stuff) is available in 2.0. I
did search a bit on my own but i could only find RC2.

Thanks and Regards,
Rithesh Swamy


Simon Hart wrote:
You didn't say what version of the CF you are using, but from what you
are
saying I am assuming CF 1.0.

MD5 is not supported in CF 1.0 but is supported under CF2.0.

See here for supported members under CF2.0:
http://msdn2.microsoft.com/en-us/library/system.security.cryptography.md5_members.aspx

If you must use CF1.0, then I recommend looking at the
OpenNETCF.Security.Cryptography namespace as there is very limited
support
for Cryptography in CF 1.0.

Regards
Simon.

"Wrecked" <rithesh.rg@xxxxxxxxx> wrote in message
news:1153734656.513775.172240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hello,
I am a bit new to .net and .net CF. My doubt is wether
System.Security.Cryptography is also supported in CF.

when i include the following code in a normal project and built it..
it didnt give me any errors


using System;
using System.Security.Cryptography;


namespace Encrypt
{
public class Encrypt
{
public byte[] MsgDigest5(byte[] msg)
{
byte[] data = msg;
MD5 md5 = new MD5CryptoServiceProvider();
byte[] result = md5.ComputeHash(data);
return result;
}
}
}


however when i include the above code for a windows smart phone device
(CF) and built, it tells me "The type or namespace name 'MD5' could
not be found (are you missing a using directive or an assembly
reference?) ". Does this mean that MD5 is not supported in .net cf or
is there anything wrong with the code i have written.

Thanks and Regards
Rithesh




.



Relevant Pages

  • Re: Cryptography on .net CF
    ... MD5 is not supported in CF 1.0 but is supported under CF2.0. ... OpenNETCF.Security.Cryptography namespace as there is very limited support ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Cryptography on .net CF
    ... MD5 is not supported in CF 1.0 but is supported under CF2.0. ... OpenNETCF.Security.Cryptography namespace as there is very limited support ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Cryptography RC4
    ... I would like to know whether .NET framework 2.0 provides support for ... deriving an RC4 encryption key. ... TripleDESCryptoServiceProvider des = new TripleDESCryptoServiceProvider; ... there is no problem if replacing RC4 by RC2. ...
    (microsoft.public.dotnet.languages.csharp)
  • CS46xx LFE and Center and Rear Speaker support
    ... Is there any support, i've seen several patches but can't seem to get ... surround sound enabled under Gentoo Linux 1.4 Rc4. ...
    (comp.os.linux.hardware)
  • RE: Adding Forms to the Namespaces
    ... cannot relate this understanding with your solution: ... In order to add a form to a project, and customize the namespace of the ... Dim formName As String ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.ide)