Re: Need simple lib for asymetric encryption




Oliver Eichler wrote:
Hi,

I am not a crypto specialist, thus please forgive me if I sound a little bit
clueless.

I would like to encrypt some data with key1 and decrypt it again with key2.
If I got it right from all the stuff I have read so far you refere to key1
as 'public key' and to key2 as 'private key'. Normally the public key is
generated from the private key. Thus, who got the private key can always
generate the public key. Is this mandatory?

What algorithm would I need to satisfy my needs? And is there a simple to
use, light weight C library?

I have looked into cryptlib, beecrypt and others.But they all seem to be an
overkill to my problem with a quite hard to understand API. Isn't there
something like :

generateKeypair(key1,key2)
encrypt(key1,...)
decrypt(key2,...)

And that's it.


Thanks for help


oliver

Did you look at libtomcrypt?

Maybe it is a better choice if things like PGP or Crypto++ are not.

Good luck!

.



Relevant Pages

  • Need simple lib for asymetric encryption
    ... I would like to encrypt some data with key1 and decrypt it again with key2. ... as 'public key' and to key2 as 'private key'. ...
    (sci.crypt)
  • RE: PGP scripting...
    ... cryptosystems, ... In these systems divulging your private key compromises the public ... Here is a quick over view of the public key encryption routines (the ...
    (SecProg)
  • Re: Private & Public Key storage location
    ... with that you complete the 'certificate' to have both public and private key ... To view the complete cert, you access the cert mmc, ... its end & send only the public key to the CA along with the other websites ... The CA never know the private key of the website. ...
    (microsoft.public.inetserver.iis.security)
  • CryptImportKey NTE_BAD_KEY error.
    ... of the private key is just fine but when I try to import the public key I ... // This Asymetric key set will be used to create the Autherization Code. ... delete psBuffer; ...
    (microsoft.public.security)
  • Re: Private & Public Key storage location
    ... client use the public key to ... corresponds to this certiticate' when you view the cert. ... it will has the private key as well. ... installed for your website, it will be sent to all the clients who connect ...
    (microsoft.public.inetserver.iis.security)