Re: My Problem - Hash - Encryption - Number - Public Key - Assymetric
From: Michael Amling (nospam_at_nospam.com)
Date: 06/30/04
- Next message: Michael Amling: "Re: Beginner Qn: Encrypting small data"
- Previous message: Tom St Denis: "Re: My Problem - Hash - Encryption - Number - Public Key - Assymetric"
- In reply to: Ad Rock: "My Problem - Hash - Encryption - Number - Public Key - Assymetric"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Michael Amling: "Re: Beginner Qn: Encrypting small data"
- Previous message: Tom St Denis: "Re: My Problem - Hash - Encryption - Number - Public Key - Assymetric"
- In reply to: Ad Rock: "My Problem - Hash - Encryption - Number - Public Key - Assymetric"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|