RE: [PHP] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Gregor Maier

This would work but I don't think that this was the idea.

You could send encrypted email from to server to another place with this method
but you can't encrypt the date transmitted with an html form. (since php runs
on the server and not on the client machine)

To secure the communication between the web-server and the client's browser you
can't use php. You'll either need SSL for your server or you use a java to
encrypte the data on the client side and then send it to the server.


On 24-Aug-2001 Jon Farmer wrote:
 PGP would be an ideal solution for this. The webserver would have the public
 key and the people operating the PDQ machine the private key. A few things
 to remember are.
 
 1. Call PGP using exec()
 2. Make sure you read the PGP docs to see how to use a particular keyring.
 3. Make sure the keyrings and randseed files are readable by the apache
 user.
 4. Have fun
 
 I have successfully got this working and if you need any help let me know
 
 Regards
 
 jon
 
 
 Hi all,
 I need to use a public/private key encryption system for dredit card
 details on a site I am developing.  We are not taking Credit Card payments
 with an online marchanmt such as NetBanx Sec Pay, etc, etc, but we need to
 send the CC details to the Shop Management for putting through a PDQ
 machine.  How can I use a Public Private key system to do this from PHP.  I
 know Java can support RSA (although never investigated it), and that PHP can
 use standard Java classes (is this true?).
 
 Please any help would be great
 
 Martin Gunther
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

--
E-Mail: Gregor Maier [EMAIL PROTECTED]
Date: 24-Aug-2001
Time: 17:37:41
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] constant arrays or something like #define in c

2001-08-23 Thread Gregor Maier

Hi,

I'm looking for a way to get a constant array or something that is similiar to
a #define XYZ abc in C.

I want to be able to do the following:

DEFINE SOMEHOW:  abc as XYZ  (like #define XYZ abc) where abc is an
array. So that XYZ is replaced by abc.

so that I can use XYZ[key] in my php-code and that this translates to abc[key].

Or is there another possibility for this. I wouldn't mind if XYZ is not
constant as long as can use XYZ instead of abc.
Would it be possible to do such a thing with references?

Thanks for your help.

Gregor

--
E-Mail: Gregor Maier [EMAIL PROTECTED]
Date: 23-Aug-2001
Time: 17:09:14
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Gregor Maier

Unfortunaly that's not an option because I must be able to make the define in
the code:

it should be like this:
i have a   script1.php and script2.php. both include a file template.php
in my template.php file I use arrays that should have different names depending
on the file that included them.
I would then the use XYZ as the name of the array in template.php and in
script1.php i would define XYZ as array1   and in 
script2.php i would define XYZ as array2.

but thanks for the tip.

On 23-Aug-2001 Andrey Hristov wrote:
  You can use define in some main config file which is known by all scripts
 of the site.
 For example
 define (SESSION_NAME,mysite_sid);
 
 Where you want to use the array
 ${SESSION_NAME}=array('login'='scott',password=tiger,age=25);
 
 
 ${SESSION_NAME}['login']
 or
 ${SESSION_NAME}['age']
 
 
 
 Hope this helps.
 
 Andrey Hristov
 IcyGEN Corporation
 http://www.icygen.com
 99%
 
 - Original Message -
 From: Gregor Maier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 23, 2001 6:16 PM
 Subject: [PHP] constant arrays or something like #define in c
 
 
 Hi,

 I'm looking for a way to get a constant array or something that is
 similiar to
 a #define XYZ abc in C.

 I want to be able to do the following:

 DEFINE SOMEHOW:  abc as XYZ  (like #define XYZ abc) where abc is an
 array. So that XYZ is replaced by abc.

 so that I can use XYZ[key] in my php-code and that this translates to
 abc[key].

 Or is there another possibility for this. I wouldn't mind if XYZ is not
 constant as long as can use XYZ instead of abc.
 Would it be possible to do such a thing with references?

 Thanks for your help.

 Gregor

 --
 E-Mail: Gregor Maier [EMAIL PROTECTED]
 Date: 23-Aug-2001
 Time: 17:09:14
 --

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

--
E-Mail: Gregor Maier [EMAIL PROTECTED]
Date: 23-Aug-2001
Time: 17:32:06
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]