By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,297 Members | 1,396 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,297 IT Pros & Developers. It's quick & easy.

Encrypted code with certificate

P: n/a
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
Nov 19 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
webmaniac wrote:
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
Nov 19 '08 #2

P: n/a
webmaniac wrote:
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
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).
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
Nov 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.