Encrypted code with certificate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • webmaniac

    Encrypted code with certificate

    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

    #2
    Re: Encrypted code with certificate

    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.javas cript?
    | <http://jibbering.com/faq/#appropriateQue stions>


    PointedEars
    --
    realism: HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness: XHTML 1.1 as application/xhtml+xml
    -- Bjoern Hoehrmann

    Comment

    • Bart Van der Donck

      #3
      Re: Encrypted code with certificate

      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:

      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

      Comment

      Working...