loading.........
asi:
Código PHP:
function encode(input) {
hexOutput = "";
for (i=0; i<input.length; i++) {
hexOutput = hexOutput + Dec2Hex(input.charCodeAt(i));
}
return hexOutput;
}
function Dec2Hex(Decimal) {
var hexChars = "0123456789ABCDEF";
var a = Decimal % 16;
var b = (Decimal - a)/16;
hex = "" + hexChars.charAt(b) + hexChars.charAt(a);
return hex;
}
a su hexadecimal
Y bueno convertir un hexadecimal a binario.... 1er semestre de Informática. (cosa que no recuerdo) :p
connection closed.