View Full Version : Code Encryptor, what code encryptor did this person use?

01-15-2011, 06:35 AM
I need to know/find out what type of Code Encryptor was used on this code. I want the exact code encryptor. Here's the code that has been encrypted:

<script type="text/javascript">document.write('\u003C\u0073\u0074\u0079\u006C\u0065\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0074\u0065\u0078\');</script>
if you want to see more of the code, go to http://leilockheart.me

That is not my code. Please someone help me find out what code encryptor was used for that code above! I need it for my website as well. The other code encryptor does not work for me; people can still decode it. Also, is there a way to decode that code?
Whatever that code encryptor was, it sure worked. I have googled it and I still can't find out which one that person used. Thanks!

01-15-2011, 12:23 PM
That's not really encoded. It's just a string with all of its characters converted to their javascript unicode entities. It wouldn't be that hard to write a little encoding routine for it. But it's so easy to break:

<textarea id="decoder" cols="50" rows="5" wrap="off"></textarea>
<script type="text/javascript">document.getElementById('decoder').value = 'string';</script>

that it's hardly worth bothering encoding anything in it in the first place.

In the above, replace 'string' with the actual string, in this case:

'\u003C\u0073\u0074\u0079\u006C\u0065\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0 . . .

[code removed for brevity]

. . . 4C\u007D\u000D\u003C\u002F\u0073\u0063\u0072\u0069\u0070\u0074\u003E'

The results will appear in the text area which you can select all and copy to any text based editor. This particular code gives:

<style type="text/css">

img {border:none; -webkit-transition: opacity 0.3s linear; opacity: 0.65; }
img:hover {-webkit-transition: opacity 0.3s linear; opacity: 1; border:none; text-decoration:none;}

a:link {color: #9d9d9d;te . . .

[code removed for brevity]

. . . dius: 8px;
-moz-box-shadow: 3px 3px 0 #ccc;
-webkit-box-shadow: 3px 3px 0 #ccc;
box-shadow: 3px 3px 0 #ccc;

<script type="text/javascript">
function changeNavigation(id)

The above 'translation' can also be obtained from any browser with developer tools capable of viewing the Generated Source of the page. IE 8 comes with, Firefox has had this as an optional add on for years. Other browsers probably have equivalent methods.

01-15-2011, 06:29 PM
Here's a primitive to/from utility for this type of encoding:


Use your browser's 'view source' to get the code.

It's not strictly valid because of the use of the wrap attribute. However, this appears necessary in IE 8 and doesn't appear to harm others.
Even with that, long encoded strings will not appear correctly in IE. But they will copy and paste and encode and decode properly.

It works well in popular modern browsers. However, for code as long as from your example page, Chrome and Safari appear to have built in limitations on the amount of text that can be pasted or encoded into the the first field. This is probably because it's all on one line. But it may be a character limit. IE 8, Opera 11, and Firefox 3 have no such problem. The three that do work introduce differing conventions for line breaks (hex 0a vs hex 0d and how many of each) but the input/output works consistently.