Smart Device RSA Cryptography

  • Thread starter Thread starter plizzzzzz
  • Start date Start date
P

plizzzzzz

hi!

I need to do some encrypt-decrypt data in my smartdevice application in
Visual Studio.Net 2003 C# but it seems it doesnt support cryptoapi functions
and also i cant find some other library. spmebody please help with some
suggestions

tnx
plizzzzzz
 
the library i wrote does support RSA (for encrypting and signing),
as well as DSA (for signing).
i wrote it on the smartPhone emulator,
and recently made some minor changes to get it working on a pocket pc 2002
device.
i dont think the RSA stuff required any changes though.
Thanks,
casey
 
Hi Casey!

its great article, just some more questions

i just need to crypt and decrypt some data; its the first time also for me
working with CryptoApi. As i understand i have to write only that interface
files Crypto.cs, Const.cs, and Structs.cs from wincrypt.h , but where is a
dll which needs to be referenced.
Also are those (your) files available anywere?

tnx
plizzzzzzz
 
click on the link that says 'download the code' :)
http://www.devbuzz.com/downloads/zinc_smartphone_cryptography.zip
Crypto.cs, Const.cs, and Struct.cs are my lower level classes.
I built upon those to make the System.Security.Crytpography namespace.
All you have to write it the application code,
which looks almost exactly like it does on the full framework:
RSACryptoServiceProvider rcsp = new RSACryptoServiceProvider();
rcsp.Encrypt(dataToBeEncrypted);
The referenced dll is coredll.dll, available on all CE devices.
It ends up referencing rsabase.dll or rsaenh.dll.
Thanks,
casey
 
Back
Top