Results 1 to 3 of 3

Thread: Code Encryptor, what code encryptor did this person use?

  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Code Encryptor, what code encryptor did this person use?

    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:
    Code:
    <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!
    Last edited by darla; 01-15-2011 at 07:14 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <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:

    Code:
    '\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:

    Code:
    <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;
    }
    
    </style>
    <script type="text/javascript">
    function changeNavigation(id)
    {document.getElementById('content').innerHTML=document.getElementById(id).innerHTML}
    </script>
    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.
    Last edited by jscheuer1; 01-16-2011 at 05:00 PM. Reason: syntax error
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here's a primitive to/from utility for this type of encoding:

    http://home.comcast.net/~jscheuer1/side/decoder.htm

    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.
    Last edited by jscheuer1; 01-16-2011 at 05:02 PM. Reason: move demo to web
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •