Crypter/decrypter vos codes sources

Description

Se code permet de crypter/decrypter une source (en hexadécimal)...
Ce mode de cryptage est très connu mais il est intéressant,
et oui l'hexadécimal qui compri du navigateur ...

exemple :

avant :
<html>
<title>tiredelapage<title>
<a href="http://www.site.fr">lien</a>
</html>

après :
<script>
<!--
document.write(unescape("%3Chtml%3E%0A%3Ctitle%3Etiredelapage%3Ctitle%3E%0A%3Ca%20href%3D%22http%3A//www.site.fr%22%3Elien%3C/a%3E%0A%3C/html%3E"));
//-->
</script>

Source / Exemple :


<html>
<head>
<title>Crypter vos pages html</title>
</head>

<!-- Compilation Panel -->
<script language="JavaScript">
<!--

var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;

function initStyleElements() /* Styles for Buttons Init */
{
var c = document.pad;
if (ie)
{
//c.text.style.backgroundColor="#DDDDDD";
c.compileIt.style.backgroundColor="#D7D7D7";
c.compileIt.style.cursor="hand";
c.select.style.backgroundColor="#D7D7D7";
c.select.style.cursor="hand";
c.view.style.backgroundColor="#D7D7D7";
c.view.style.cursor="hand";
c.retur.style.backgroundColor="#D7D7D7";
c.retur.style.cursor="hand";
c.clear.style.backgroundColor="#D7D7D7";
c.clear.style.cursor="hand";
}
else return;
}

/* Buttons Enlightment of "Compilation" panel */
function LightOn(what)
{
if (ie) what.style.backgroundColor = '#D7D7D7';
else return;
}
function FocusOn(what)
{
if (ie) what.style.backgroundColor = '#ffffff';
else return;
}
function LightOut(what)
{
if (ie) what.style.backgroundColor = '#ffffff';
else return;
}
function FocusOff(what)
{
if (ie) what.style.backgroundColor = '#ffffff';
else return;
}
/* Buttons Enlightment of "Compilation" panel */

function generate() /* Generation of "Compilation" */
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='Compilation ...';
setTimeout("compile()",1000);
}
else alert('Placer votre html dans la fenetre')
}
function compile() /* The "Compilation" */
{
document.pad.text.value='';
compilation=escape(code);
document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
if (i=1) alert("Page html compil?e !");
else alert("Page compiled "+i+" times!");
}
function selectCode() /* Selecting "Compilation" for Copying */
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('Rien à séléctionner !')
}
function preview() /* Preview for the "Compilation" */
{
if(document.pad.text.value.length>0)
{
pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
pr.document.write(document.pad.text.value);
}
else alert('Arg!')
}
function uncompile() /* Decompiling a "Compilation" */
{
if (document.pad.text.value.length>0)
{
source=unescape(document.pad.text.value);
document.pad.text.value=""+source+"";
}
else alert('Il n y a rien à compiler !')
}
// -->
</script>
<form method="post" name="pad" align="center">
  <p align="center">
    <textarea rows="11" name="text" cols="58" style="background-color: rgb(215, 215, 215); color: Black;

font-family: Verdana; font-size: 11px;"></textarea>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" value="Chiffrer" name="compileIt" onclick="generate()" onmouseover="LightOn(this)"

onmouseout="LightOut(this)" style="background-color: rgb(255, 255, 255); color: Black; font-family: Verdana;

font-size: 11px;">

    <input type="button" value="Selection" name="select" onclick="selectCode()" onmouseover="LightOn(this)"

onmouseout="LightOut(this)" style="background-color: rgb(255, 255, 255); color: Black; font-family: Verdana;

font-size: 11px;">
    <input type="button" value="Voir" name="view" onclick="preview()" onmouseover="LightOn(this)"

onmouseout="LightOut(this)" style="background-color: rgb(255, 255, 255); color: Black; font-family: Verdana;

font-size: 11px;">
    <input type="button" value="Source" name="retur" onclick="uncompile()" onmouseover="LightOn(this)"

onmouseout="LightOut(this)" style="background-color: rgb(255, 255, 255); color: Black; font-family: Verdana;

font-size: 11px;">
    <input type="reset" value="Effacer" name="clear" onmouseover="LightOn(this)"

onmouseout="LightOut(this)" style="background-color: rgb(255, 255, 255); color: Black; font-family: Verdana;

font-size: 11px;">
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font face="Verdana, Arial, Helvetica, sans-serif"

size="1"></font></p>
</form>
<!-- Compilation Panel -->
</html>

Codes Sources

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.