473,396 Members | 1,921 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,396 software developers and data experts.

Re: ECMAScript Secure Transform. My idea, i think...

if the any server don't have the SSL protocols this method can be
used ...
the key of the cryption is the optional and will be change. for
example can be a hash of the client HTTP_USER_AGENT and REMOTE_ADDR
and more... as the same key.

if you want to put the secure data in the normal page it's useful
method.

what your mean?

thanks for answering me. :)
Sep 21 '08 #1
3 1478
On 2008-09-21 14:32, Semnan Web Administrator wrote:
the key of the cryption is the optional and will be change. for
example can be a hash of the client HTTP_USER_AGENT and REMOTE_ADDR
and more... as the same key.

if you want to put the secure data in the normal page it's useful
method.

what your mean?
My point is that as long as you are sending the key along with the
cyphertext, the "secure" data can be decrypted by anyone listening in on
the traffic. Even if you're using something other than PHP's session ID,
you have to tell the JavaScript client the algorithm and the key
somehow. This information can be intercepted and used to read the
encrypted content. And we _have_ to assume that someone is potentially
intercepting the traffic - if that were impossible, there would be no
point in encrypting the transmissions in the first place.

To be perfectly clear, if you're planning on sending sensitive
information between a server and a web browser, use SSL/TLS. If you
can't use a secure connection, don't send sensitive information.

The only way I could think of would be to let the user supply a secret
password (which would also be stored on the server). The problem with
that approach is that your scripts could be altered by an attacker
sitting between the server and the client (to include any one of a
million ways to get to the sensitive information). As far as I know,
this cannot be effectively prevented, except maybe with signed scripts.
Unfortunately, you'd need the browser to check the signature of the
whole page and all of the scripts; you can't do these checks with
JavaScript without running into exactly the same problem (altered or
injected scripts). Fortunately, there is a way to let the browser check
the signature and the integrity of the contents: SSL/TLS :-)

I hope this explains the problem a little better.
- Conrad
Sep 21 '08 #2
i know the key can be found in client site but the the data securing
between client and server.
and not any servers and computer that between on client and server to
process submitted data?

the best way is the SSL/TLS i know.
this method for the server haven't ssl certificates. just for the a
little secure transform.
it's simple. huh.

check the updated page.
http://www.semnanweb.com/ecmast-ecma...ure-transform/

thank again for reply to me. :)
Sep 21 '08 #3
On 2008-09-21 19:19, Semnan Web Administrator wrote:
i know the key can be found in client site but the the data securing
between client and server.
and not any servers and computer that between on client and server to
process submitted data?
You can't be sure who else might be listening to or interfering with
your HTTP traffic (except maybe in small internal networks or when
you're testing locally). The routers and proxy servers of both the
client's and the server's ISPs are sitting in the middle, at least. Can
you really trust those companies with your sensitive data? Then there
are fun things like rogue DNS servers, DHCP servers, etc. Do you really
know which server you're talking to when you're not using HTTPS?

If nobody's listening/interfering:
=no need for encryption
If somebody is listening:
=they can just read your password and decrypt your data

I see what you're trying to do. It's an interesting idea, but calling it
"secure" would give people a false sense of security ("snake oil"). The
only thing your approach would accomplish, is to evade casual passive
sniffers. If you're collecting sensitive data, there can only be one
answer, and that is to get a better hosting service that will allow you
to use SSL. Everything else is a security breach waiting to happen.
- Conrad
Sep 21 '08 #4

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

Similar topics

1
by: Joe Kelsey | last post by:
Does the "semicolon insertion" really affect you if you format code as function x (y) { // ... } instead of: function x (y) {
31
by: manno | last post by:
Hi all, more or less just out of curiosity... I had a short 'discussion' about JavaScript in different borwsers. The other guy said that there's differeces in JavaScript accross browsers (I...
12
by: Simula | last post by:
Hello All, Does anyone have any knowledge of when version 4 will be released? I think that version 3 was finalized in 1999 and it would be really nice to have the class keyword and statically...
7
by: n33470 | last post by:
We're in the process of migrating our projects to use VS2005 from VS2003. We have a web page that uses the XML WebControl (System.Web.UI.WebControls.Xml) to perform an XSLT tranformation by...
4
by: Dean Card | last post by:
Okay, so here is the situation. I have need to do some on-the-fly image creation. I have everything working great except for the last part of it, applying a perspective type transform to the...
4
by: Academia | last post by:
Regex class has the option ECMAScript which can set. I searched the Internet and got about a million hits that reference ECMAScript but none that defined it. Can you tell me what it is used...
34
by: dhtml | last post by:
I made a change to the FAQ of javascript to EcmaScript. I got some feedback that the newsgroup is CLJ and the language is commonly referred to as JavaScript. Therefore, the word in the FAQ...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - What is ECMAScript? ----------------------------------------------------------------------- ECMAScript is the...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.