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
[EMAIL PROTECTED]
(303)828-9882

----- Original Message -----
From: "Hunter, Ray" <[EMAIL PROTECTED]>
To: "'Jonathan Hilgeman'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 11:59 AM
> To: [EMAIL PROTECTED]
> 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
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to