473,387 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Javascript text encoding/encrypting

MS has published on its sites javascript encoder, which enables "encrypting"
javascript code. It allows hiding js code from being seen as a text file.
There is a decoder for it, available in the net, freeware, srcdec14.exe.

I have tested both, encrypting, decrypting, the source and the final files
are identical.

But what I met on a certain site is a js file, encoded I think in another
way, because I cannot decrypt it using the srcdec14.exe.

This is why I have a question for genarally any information cons. this
subject (are there several ways MS is able to read encrypted js files?, do
you know other decoders?,...)

--

Peter
Jul 20 '05 #1
3 9814
"Piotr" <pi*********@poczta.onet.pl> writes:
This is why I have a question for genarally any information cons. this
subject (are there several ways MS is able to read encrypted js files?, do
you know other decoders?,...)


I haven't heard of any other MS created encryption.
Show us the page, and we'll have more to go on!
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
> I haven't heard of any other MS created encryption.
Show us the page, and we'll have more to go on!
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html> 'Faith without judgement merely degrades the spirit divine.'


The page: http://pl.php.net/search.php
What is encrypted: functions.js
Why do I claim sth is in another way:
1) this js module doesn't start with "#@~^", which is the beginning of MS
encrypted js files
2) scrdec14.exe decoder simply doesn't work on it

Piotr
Jul 20 '05 #3
"Piotr" <pi*********@poczta.onet.pl> writes:
The page: http://pl.php.net/search.php
What is encrypted: functions.js
I.e., the encrypted script is <URL:http://pl.php.net/functions.js>.
Why do I claim sth is in another way:
1) this js module doesn't start with "#@~^", which is the beginning of MS
encrypted js files
2) scrdec14.exe decoder simply doesn't work on it


As I expected, it is encrypted using Javascript itself.
There are plenty of different javascript-encoders out there, claiming
different degrees of security. I haven't found one yet that I couldn't
crack.

This one doesn't seem to be protecting the code. It has merely
obfuscated the variable names (They are almost all two or three
letters starting with "F"), and they have compacted the (huge amount
of) data used by the page.
The variable "cdp" contains a very long string. When it is decoded,
it becomes the array Ff, which contains
"abs","acos","acosh","addcslashes",...
I.e., the list of names that they suggest when you start typing in the
search input box.
I guess it is only a matter of compression, not encryption.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Derrick | last post by:
Hi All, I wrote an app that reads text and/or xml data, will call it our "content". We want to secure that content so that our app will know if someone has modified it, or has produced their own...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
6
by: larry mckay | last post by:
Hi, Does anyone have any simple text string encryption routines that are easy to implement? I'm trying to prevent users and system administrators from figuring out how I implement things....
0
by: Lotta P | last post by:
Hi, I have a problem concerning encoding when posting a form. The form (a textbox and a button) is posted using JavaScript and a window.location("http://therecieverofthedata"). The website...
16
by: namemattersnot | last post by:
re, I have the following problem: links containinig cyrillic characters do not display by the javascript. server-side PHP script encodes them with rawurlecode() function and everything works...
3
by: bloc | last post by:
I am programming an interactive CV using xml, xslt and java script. The page consists of a header which contains links to various 'sections' on the xml cv, a left and right menu, and a central...
2
by: zakhirn | last post by:
Hello, I have the follow XML, XSL, and HTML file with javascript: cd.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
2
by: andy.z | last post by:
I'm confused - The following outputs a URL encoded string into an alert box ----------------------CUT ---------------------- function createEmbarrasment() { $tmp = urlencode("Your fly is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.