Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

javascript to html(decryption)

need help on decrycting



8:05 am on Oct 1, 2010 (gmt 0)

5+ Year Member

i want to know of how to decrypt a javascript encrypted code...
this is what i did... first i got an HTML code...
then i encrypted it by javascript encrypter found on web...
<script language="javascript">
the javascript encrypted code goes here

obviously it will act like an HTML code will do...
but my problem is how am i gonna bring back the HTML codes.. because there is no such javascript to html decrypter....
by the way i'm new here..so please correct me if i'm posting wrong...
hoping for reply...


10:27 am on Oct 1, 2010 (gmt 0)

10+ Year Member

First of all, your post seems fine.

It should be quite simple do do what you want depending on what method you used to encrypt it, you don't need to use javascript to decrypt it either.

If you google around you will find some websites which will decrypt code for you, just find out which encryption type the script uses (it should be part of the javascript code) and google it, I found a few tools quite easily by searching "Decrypt HTML".


7:58 am on Oct 4, 2010 (gmt 0)

5+ Year Member

it's not that i want to just encrypt.. i want to encrypt it and make it not so easy to decrypt.. and i found that this isn't that easy to decrypt so i'm asking of how to decrypt this...
for example this is my code....
<script language="javascript">var enkripsi="'1Ajvon'1G'1Ar'1G'1A`'1Go{'02gzcorng'1A-`'1G'1A-r'1G'1A`p'1G'1A`nkli'1G/lccpi'1A-`nkli'1G'1A-`p'1G'1A-jvon'1G"; teks=""; teksasli="";var panjang;panjang=enkripsi.length;for (i=0;i<panjang;i++){ teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2) }teksasli=unescape(teks);document.write(teksasli);</script>

would you decrypt it and then tell me how'd you do it...
as simple as that... btw thanks for the reply...


10:54 pm on Oct 5, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

First I'd format it into something more readable.
The I would replace the document.write with alert. So you end up with

<script language="javascript">
var enkripsi="'1Ajvon'1G'1Ar'1G'1A`'1Go{'02gzcorng'1A-`'1G'1A-r'1G'1A`p'1G'1A`nkli'1G/lccpi'1A-`nkli'1G'1A-`p'1G'1A-jvon'1G";
var panjang;panjang=enkripsi.length;
for (i=0;i<panjang;i++)
{ teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2)

And presto.
<html><p><b>my example</b></p><br><blink>-naark</blink></br></html>

The above encryption is a rather simple one.
Have a look at [isc.sans.edu...] for a lot more complex ones.

But in the end, it can always be decrypted, so why even try?


11:37 am on Oct 7, 2010 (gmt 0)

10+ Year Member

I see I don't think I understood what exactly you meant, what is it you are trying to protect on your site?


7:59 am on Oct 9, 2010 (gmt 0)

5+ Year Member

no nothing ... i just want to try some coding and some decrypting on my own... just some thing like a hobby to me... still thanks for the help....

Featured Threads

Hot Threads This Week

Hot Threads This Month