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