K๔d:
var c_Secret = {
_regExp: new RegExp("\\d{3}", "g"),
_number: 160,
f_Encrypt: function(s_String) {
var Encrypt="", Encrypted="", i=0, j=0, text=escape(s_String.split("").reverse());
while (i < text.length) {
Encrypted += text[i].charCodeAt(0) + this._number;
i++;
}
Encrypted = Encrypted.match(this._regExp);
while (j < Encrypted.length) {
Encrypt += String.fromCharCode(Encrypted[j]);
j++;
}
return Encrypt;
},
f_Decrypt: function(s_String) {
var Decrypt="", Decrypted="", i=0, j=0, text;
while (i < s_String.length) {
Decrypted += s_String.charCodeAt(i);
i++;
}
text = Decrypted.match(this._regExp);
while (j < text.length) {
Decrypt += String.fromCharCode(text[j] - this._number);
j++;
}
return unescape(Decrypt).split(",").reverse().join("");
}
};
K๔d:
c_Secret.f_Encrypt("devprotalk.com");
c_Secret.f_Decrypt("čลาใďลาใăลาใฮลาใċลาใČลาใāลาใĔลาใďลาใĒลาใĐลาใĖลาใąลาใĄ");