Re: Encryption

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: casey chesnut (casey_at_MORE_spam_PLEASEbrains-N-brawn.com)
Date: 10/21/04


Date: Thu, 21 Oct 2004 12:03:54 -0500

RSA (and the crypto namespace) is used extensively by CF WSE.
take a look at the sample code for calling WSE from CF here:
http://www.brains-N-brawn.com/cfWSE2
from the WSE tests it can sign/verify and encrypt/decrypt between the
desktop.

the difficulty parts is that sometimes the KeyStore does not exist,
and you might have to create it (use the RSA constructor overload).
other difficulties are people understanding pub/priv key crypto:
-i sign a message to them with my private key.
they verify with my public key.
-i verify a message from them with their public key.
they would have signed with their private key.
-i encrypt a message to them with their public key.
they decrypt with their private key.
-i decrypt a message from them with my private key.
they would have encrypted with my public key.

Thanks,
casey

"Carlos Fernandez" <CarlosFernandez@discussions.microsoft.com> wrote in
message news:A0B6D46D-8F9F-4394-9930-256C2ABDAEAB@microsoft.com...
>I need to write a small program that deencypt data in RSA. I was quite
>happy
> to see that opennetcf provides this, but I've been googling around and
> people
> seem to have a lot of problems with it.
>
> Has anyone done this successfully?
>
> I don't need to encrypt, only decrypt. The data will be generated and
> encrypted in a .net desktop application.
>
> Thanks.
>



Relevant Pages

  • Re: What is exponent?
    ... For simple description of RSA algorithm ... I also have the receiver's certificate (public key only). ... Use RSA to encrypt the session key ...
    (microsoft.public.dotnet.security)
  • Re: RSA Encrypt/Decrypt Problems
    ... You can generate a snk for each and replicate the public key part to each ... Then sym encrypt your data with the key and iv and store in the ... You could actually do it with small blocks and only the public rsa key, ... > key) with the symmetric key embedded in the file and encrypted using the ...
    (microsoft.public.dotnet.security)
  • Re: how to create a file with copy/read denied to it
    ... This refers to RSA. ... She then encrypts the message digest with her private key, ... decrypts the signature with Alice's public key to recover the ... RSA decryption algorithm is used to *encrypt* the plaintext and vice ...
    (comp.unix.programmer)
  • Re: RSA - Public vs. Private Keys
    ... RSA is intended to encrypt messages with public keys only. ... encrypt the symmetric key with the private key. ... and public key/certifcate info about the public key ...
    (microsoft.public.dotnet.security)
  • Re: How to encrypt username/password token?
    ... You can encrypt the Username/Password usernametoken with the Service's ... Public Key so that only the corresponding Service that has the Private Key ... WSE 2.0" paper which has typos in the place they're demonstrate how to do ...
    (microsoft.public.dotnet.framework.webservices.enhancements)