Connecting Tech Pros Worldwide Help | Site Map

Encrypted code with certificate

  #1  
Old November 19th, 2008, 03:45 PM
webmaniac
Guest
 
Posts: 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
  #2  
Old November 19th, 2008, 07:15 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a

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
  #3  
Old November 20th, 2008, 10:25 AM
Bart Van der Donck
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to access NTFS encrypted file after reinstalling XP Mir Mosharrof Hussain answers 3 July 30th, 2008 01:19 PM
Failed to access NTFS encrypted file after reinstalling XP Mir Mosharrof Hussain answers 1 July 29th, 2008 08:13 AM
hash code generating algorithm. lavu answers 5 November 20th, 2006 07:05 PM
Encrypted File Transfer Philipp Brune answers 8 July 17th, 2005 11:41 AM