Encrypting XML data using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
garliu
Forum Newbie
Posts: 1
Joined: Thu Mar 15, 2007 9:58 am

Encrypting XML data using PHP

Post by garliu »

Hi.

I am using PHP to write to an XML file. Some information written to the XML file may be sensitive (for example: username and password). Is there a way to write this information to the XML file so that it encrypts the data.

Thanks for reading this.

Gar
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Why not encrypt it using via php using the mcrypt extension ?
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post by Mordred »

What happens to this .xml after it gets created?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Hash the username and password (with a high level hash.)

:?:
Post Reply