[FX.php List] Encrypting/decrypting in PHP
stephen.grant at 724.com.au
Mon Sep 19 10:56:28 MDT 2011
We do this all the time. Use:
Then base64 encode the results.
I will send an example tomorrow.
On 20/09/2011, at 1:23, Bob Patin <bob at patin.com> wrote:
> I have a client for whom I wrote a conference registration web app; the registrants reserve hotel rooms as part of their registration, and my client has to store their credit card numbers in order to pass them on to the hotel.
> I told my client that we need to encrypt the card numbers if we're going to store them in the database; I use a plugin to encrypt card numbers for my own use, but was wondering if any of you have a method for encryption/decryption that is all PHP-based.
> My first choice would be to encrypt in PHP, then write to FileMaker; then, using a plugin or whatever, give the client the ability to decrypt one or more records in the database itself.
> Failing that, I'd encrypt in PHP, write the encrypted string, then write a little web app to read back these records into PHP, decrypt there, and display the decrypted results on a PHP page.
> Anyone gone down this path before?
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> Twitter: bobpatin
> Google+: http://www.longtermsolutions.com/plus
> AIM: longterm1954
> iChat: bobpatin
> Expert FileMaker Consulting
> FileMaker Hosting for all versions of FileMaker
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
More information about the FX.php_List