Re: My Problem - Hash - Encryption - Number - Public Key - Assymetric

From: Michael Amling (nospam_at_nospam.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 15:24:58 GMT

Ad Rock wrote:
> Hello,
>
> I have the following problem. I've written an app. The app generates a
> number. The user has to send that number back to me via email. The user
> is allowed to see that number. So, that number must be signed by my app
> in some way, it doesn't have to be encrypted.
>
> Working with Public Key/Private Key encryption methods such as RSA would
> probably be the best thing to do, BUT, I searched the Internet for very
> easy intuitive plain simple no-hassle straight-forward C libraries, but
> I can't find one. I know about BeeCrypt, Crypto++ and a lot of others,
> but no, ... I want something like:
>
> char *p = create_public_key();
> char *q = create_private_key();
>
> char *encrypted_message = encrypt(message, p);
> char *decrypted_message = decrypt(encrypted_message, q);
>
> THAT easy. Is there really not a library available in the PULBIC DOMAIN
> (free for commercial use) that is so easy to use? I also looked at
> GnuPG. Noooooooo...

   It's almost that easy using java.math.BigInteger.

   If your application has no more trouble keeping a symmetric key
secret than keeping an asymmetric private key secret, it may as well use
a MAC rather than a digital signature.

--Mike Amling



Relevant Pages

  • Re: XP - Disc used bt another app - ?
    ... Nathan McNulty ... Rock wrote: ... > Close app and make sure no windows are open". ... > obvious in Task Mgr. ...
    (microsoft.public.windowsxp.hardware)
  • One finger contact search, ike Palm!
    ... Does anyone know of an app that will replicate this for a handhelp PC? ... Once in contacts, rock the centre button right and a search would start on the first letter, rock down and it would fast scroll through the alphabet. ...
    (microsoft.public.pocketpc)