fx has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I need to encrypt a short string (less than 80 characters probably) to be stored in a database. However, should the database be compromised, I need the encrypted data to decrypt with a different key so that the data in the database is worthless without the decryption key.
I had a look at "Perl modules for light to moderate encryption" - http://www3.marketrends.net/encrypt/ - but they all used symmetric key encryption (or at least, that is what I think it is called when you use the same key for both operations).
Do I need some form of public/private key encryption here? If so, which perl module would be advised for my needs?
Thanks,
fx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encryption and decryption using different keys
by tachyon (Chancellor) on Aug 31, 2001 at 15:31 UTC | |
|
Re: Encryption and decryption using different keys
by jbert (Priest) on Aug 31, 2001 at 18:38 UTC | |
|
Re (tilly) 1: Encryption and decryption using different keys
by tilly (Archbishop) on Aug 31, 2001 at 18:55 UTC | |
|
Re: Encryption and decryption using different keys
by btrott (Parson) on Sep 01, 2001 at 01:33 UTC | |
|
(redmist) Re: Encryption and decryption using different keys
by redmist (Deacon) on Sep 01, 2001 at 09:39 UTC |