Connecting Tech Pros Worldwide Forums | Help | Site Map

Encrypted code with certificate

webmaniac
Guest
 
Posts: n/a
#1: Nov 19 '08
Hi I have an XML document that contains a username & password for the
login to the web page.

I want to know, How I can secure or Encrypt that XML document?

Here is the xml:
<?xml version="1.0" ?>
<Document>
<Row>
<Username>Sunny</Username>
<Password>sunny</Password>
</Row>
</document>

Do I have to use some certificate or have to provide some key to the
user?
Or How I can secure my XML, so that no one can access it.

Thanks

Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#2: Nov 19 '08

re: Encrypted code with certificate


webmaniac wrote:
Quote:
Hi I have an XML document that contains a username & password for the
login to the web page.
>
I want to know, How I can secure or Encrypt that XML document?
| What questions are on-topic for comp.lang.javascript?
| <http://jibbering.com/faq/#appropriateQuestions>


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Bart Van der Donck
Guest
 
Posts: n/a
#3: Nov 20 '08

re: Encrypted code with certificate


webmaniac wrote:
Quote:
Hi I have an XML document that contains a username & password for the
login to the web page.
>
I want to know, How I can secure or Encrypt that XML document?
>
Here is the xml:
<?xml version="1.0" ?>
<Document>
<Row>
<Username>Sunny</Username>
<Password>sunny</Password>
</Row>
</document>
There are many ways, but since this is a javascript newsgroup, here is
a javascript function that uses the same encryption of default UNIX:
http://groups.google.com/group/comp....6d1191285a15a4
Quote:
Do I have to use some certificate or have to provide some key to the
user?
A certificate is not applicable here; that is only to confirm the
identity of a server. A key is common thing in cryptography (salt,
public keys, private keys, ... depends on the algorithm of choice).
Quote:
Or How I can secure my XML, so that no one can access it.
I surmise you need to read up a bit more about encryption first. There
are multiple de/encryption ciphers depending on what you exactly want.

Hope this helps,

--
Bart
Closed Thread