Hay una funci�n en javascript:
escape
B�sicamente al c�digo original lo escondes aplicandole 'escape' y lo pones
en tu html en un javascript que lo que va a hacer es un 'document.write'
del 'unescape' del c�digo escondido (No se si me explico bien). Adm�s de
agregar al tag "Body" del documento oncontextmenu = "javascript:return
false;" y cosas as� para mayor seguridad.
Microsoft tiene un Script Encoder, con el que puedes encriptar el c�digo
vbscript de las ASP's, tambi�n tiene opciones para javascript, pero hasta la
fecha no le he utilizado para encriptar javascript. Este lo puedes bajar de:
Anexo lo siguiente en ingl�s. En relaci�n a la funci�n escape.-
The top-level function, escape, encodes the string that is contained in the
string argument to make it portable. A string is considered portable if it
can be transmitted across any network to any computer that supports ASCII
characters.
To make a string portable, characters other than the following 69 ASCII
characters must be encoded:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
1234567890
@*-_+./
All other characters are converted either to their two digit (%xx) or four
digit (%uxxxx) hexidecimal equivalent (refered to as the character's
"hexidecimal escape sequence"). For example, a blank space will be
represented by %20 and a semicolon by %3B. (Note that the hexidecimal
numbers are: 0123456789ABCDEF).
Use the unescape function to decode an encoded sequence that was created
using escape.
Code:
document.write(escape("Miss Piggy."))
Output:
Miss%20Piggy.
Code:
document.write(escape("[EMAIL PROTECTED]&*()_+|"))
Output:
[EMAIL PROTECTED]
-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre
de Quasi (Wanadoo.es)
Enviado el: Mi�rcoles, 30 de Junio de 2004 08:22 a.m.
Para: Ayuda DesarrolloWeb; Ovillo, la lista de CSS en castellano
Asunto: [Ovillo] Proteccion de codigo para CSS y JavaScript
Sabrian decirme, como puedo proteger o esconder el codigo de las CSS y
los javascripts. Que se encuentran en ficheros adjuntos.
Aunque no sea de forma total que ya se que es imposible, que barreras o
trucos existen, algun manual?
Gracias de antemano.
--
Saludos: Javier Fern�ndez Rivera
http://www.ircorion.net
[EMAIL PROTECTED]
_______________________________________________
Ovillo mailing list
[EMAIL PROTECTED] http://ovillo.org/mailman/listinfo/ovillo_ovillo.org
_______________________________________________
Ovillo mailing list
[EMAIL PROTECTED]
http://ovillo.org/mailman/listinfo/ovillo_ovillo.org