Win2K CryptAPI : Way to encrypt w/ Pvt and decrypt w/ Pub key ?

From: Chris Kushnir (ckushni1_at_san.rr.com)
Date: 05/30/04


Date: Sun, 30 May 2004 08:35:28 GMT

I've recently started in with the Windows CryptAPI.

I've gotten the impression that the API is set up to always encrypt with the
public key and decrypt with the private (when using exchange or signature
keys) - is this correct ?

I would like my server to be able to broadcast small messages to connected
clients. I was hoping to have the server encrypt the message with it's
private exchange key so the clients could decrypt with the servers public
exchange key to verify the message source as being the server.

If the API will only encrypt with the public key what is considered best
practice to achieve the results i want ?

thank-you,
...cmk



Relevant Pages

  • Re: More on learning "Public Key Authentication"
    ... let me say that in public key ... >> encrypt the result with Alice's public key. ... >> is sent to Alice who decrypts the message with her private key (which ... > encrypted with my private key and they can then decrypt it with the ...
    (comp.sys.mac.system)
  • Re: how to have a gpg public key?
    ... Having just a public key doesn't do you much good. ... You need both a private key and a public key; ... can encrypt and decrypt your messages and you are just ...
    (Debian-User)
  • [OT] Re: Basic question about Public Private Key Pairs
    ... > and private keys allow me to decrypt, but vice versa is not possible (or ... a public key and a corresponding private key. ... You can encrypt something with each key; ...
    (microsoft.public.dotnet.security)
  • Re: Encrypted and Decrypted Conn String Programatically
    ... aspnet_regiis....something about copying the keys to the remote server. ... I have a question about encrypting connection strings in an asp.net 2.0 ... I need to programatically encrypt and decrypt the conn string because I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Encrypted and Decrypted Conn String Programatically
    ... aspnet_regiis....something about copying the keys to the remote server. ... I have a question about encrypting connection strings in an asp.net 2.0 ... I need to programatically encrypt and decrypt the conn string because I ...
    (microsoft.public.dotnet.framework.aspnet)