Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/04/2006, 15:19
jpeeri
Invitado
 
Mensajes: n/a
Puntos:
Encriptar en XML

Hola:

Estoy haciendo un documento en xml con la configuración que tendrá un .swf. El problema es que no quiero que nadie se lo descargue pero un chico pillo puede acceder al xml y robarme el swf.

He estado viendo que:
Código:
  <?xml version='1.0'?>
  <PaymentInfo xmlns='(http)example.org/paymentv2'>
    <Name>John Smith</Name>
    <CreditCard Limit='5,000' Currency='USD'>
      <Number>4019 2445 0277 5567</Number>
      <Issuer>Example Bank</Issuer>
      <Expiration>04/02</Expiration>
    </CreditCard>
  </PaymentInfo>

//NUMBER SE PUEDE ENCRIPTAR ASI:

  <?xml version='1.0'?>
<PaymentInfo xmlns='(http)example.org/paymentv2'>
<Name>John Smith</Name>
<CreditCard Limit='5,000' Currency='USD'>
<Number>
<EncryptedData xmlns='(http)(www)w3.org/2001/04/xmlenc#'
Type='(http)(www)w3.org/2001/04/xmlenc#Content'>
<CipherData>
<CipherValue>A23B45C56</CipherValue>
</CipherData>
</EncryptedData>
</Number>
<Issuer>Example Bank</Issuer>
<Expiration>04/02</Expiration>
</CreditCard>
</PaymentInfo>
NOTA: El (http) lo pongo porque no me deja enviar URLS de otras webs
Bien, ahi explica como desencriptar una cadena. A23B45C56 se convierte en <number>...</number>, pero para otra cosa que se debe usar??