homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

javascript to html(decryption)
need help on decrycting

Msg#: 4209780 posted 8:05 am on Oct 1, 2010 (gmt 0)

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</script>

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+ Year Member

Msg#: 4209780 posted 10:27 am on Oct 1, 2010 (gmt 0)

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".


Msg#: 4209780 posted 7:58 am on Oct 4, 2010 (gmt 0)

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...


WebmasterWorld Senior Member 5+ Year Member

Msg#: 4209780 posted 10:54 pm on Oct 5, 2010 (gmt 0)

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?


10+ Year Member

Msg#: 4209780 posted 11:37 am on Oct 7, 2010 (gmt 0)

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


Msg#: 4209780 posted 7:59 am on Oct 9, 2010 (gmt 0)

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....

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved