Re: Secure Encrypt/Decrypt Functions
| From: | Peter Janett | Date: | Fri, 22 Feb 2002 07:13:39 +0000 |
| Subject: | Re: Secure Encrypt/Decrypt Functions | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17182@lists.php.net to get a copy of this message | ||
I too need a solution for this, but I don't think mcrypt will work. Why? I
need public key/private key encryption, as I don't want to risk leaving the
key on the server.
>From what I understand by reading the mcrypt docs, you encrypt and decrypt
with the same key, so if someone were to be able to read the script that
does the crypting, they would be able to view (or find then view) the key.
I've started to try to accomplish this with PGP, but am having trouble
getting PHP to call PGP successfully.
Anyway, is there any way to do public key/private key encryption with PHP?
Thanks,
Peter Janett
New Media One Web Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New Upgrades Are Now Live!!!
Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1
Sun Solaris (UNIX) accounts - PHP 4.0.6, mod_perl/1.25,
Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PostgreSQL coming soon!
http://www.newmediaone.net
webmaster@newmediaone.net
(303)828-9882
----- Original Message -----
From: "Hunter, Ray" <rhunter@enterasys.com>
To: "'Jonathan Hilgeman'" <JHilgeman@ecx.com>;
<php-db@lists.php.net>
Sent: Thursday, February 21, 2002 12:02 PM
Subject: RE: [PHP-DB] Secure Encrypt/Decrypt Functions
> You can use the mcrypt functions of php. You can look in the php manual
> here: http://www.php.net/manual/en/ref.mcrypt.php . You will
> also need to
> compile php with mcrypt. I use mcrypt with no problems.
>
>
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -----Original Message-----
> From: Jonathan Hilgeman [mailto:JHilgeman@ecx.com]
> Sent: Thursday, February 21, 2002 11:59 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Secure Encrypt/Decrypt Functions
>
>
> Does anyone know of a fairly simple, but secure technique for encrypting
and
> decrypting text?
>
> - Jonathan
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>