From: mistral on

TC пиÑ?ал(а):

> mistral wrote:
> > some people consider that encoding of javascript code on html page is
> > very weak, easily crackable, and unreliable. May be. Nevertheless, what
> > data is encoded below, and what enctyption method used?
>
> (snip code)
>
> People have said that -if- Javascript is encrypted in such as fashion
> that a user agent (like a browser) can decrypt it -automatically-,
> then, a human person can also decrypt it.
>
> But, if the decryption requires a password that is not available to the
> user agent (unless the user enters it manually), then, naturally, a
> human person can -not- decrypt it, unless he can find out that
> password.
>
> Neither of those two statement requires a block of code to illustrate.
>
> Do you agree, or disagree, or have I missed your point?
>
> TC (MVP MSAccess)
> http://tc2.atspace.com
-------------

No. the idea was to test how strong is protection (it was encrypted
with simple standard software). Phil Carmody fails to decrypt it and
find password. So, this encryption is strong enough. Try get password
if you think you are strong enough.

m.

From: TC on

mistral wrote:

> the idea was to test how strong is protection (it was encrypted
> with simple standard software).

I still don't get it.

If the password and decryption procedure are fully included in the code
you gave, then, it is trivially simple to decrypt the ciphertext. You
simply de-obfuscate the code, find the decryption procedure, then call
that procedure, with the known arguments.

Conversely, if the password and decryption procedure are -not- fully
included in the code you gave, and the cipher is a decent one, then, it
should -not- be possible to decrypt the ciphertext.

There's nothing new there. The exact same comments would apply, no
matter what language you coded it in. There's no point *actually doing
it*, when you can work it out "in principle".

Of course you can code a strong cipher in Javascript. But if you
provide a *self decrypting ciphertext* to a web browser, then, a human
person can decrypt that ciphertext, just like the web browser can.

Yes? No?

TC (MVP MSAccess)
http://tc2.atspace.com

From: Tom St Denis on

mistral wrote:
> some people consider that encoding of javascript code on html page is
> very weak, easily crackable, and unreliable. May be. Nevertheless, what
> data is encoded below, and what enctyption method used?

First step, trying to munge the code is stupid, without configurationg
this is what GNU Indent gave me


function
HHHHH (DDDDD, msg1)
{
var NNNII = new
Array

('suQvIsGK47/GwKz2wvvz0rtyOyABl2UrTkHN1Cu7PT0oY1SPIkvh4V7/LNSnymZkQJTfMCdn0P7ATyHos9TvOrxNhjkNNlGZBYqk2fQwnnb1WPxoPbXje763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Gwb8AQx8g9T0XQfonxVIUtjl1WealujnymstyaeE71aiyPOUs5A',

'4/EkgAECcyoami1rfjNnAru+/f2dn+U4Q9DBo754Nm2k4FGE+po93B+7H1z3Yf93Y5ieMeoz1SLASfy2eIz893RApyxeBcXSror2zaUh5T5/Kfk6bqDyA3Mkv0BjqxZ5bTXR9SB55WypuLM/HO1dQqqMuYsbHgG61jnLrQiHz44tiiF04v0jC8nS3NwtaFqXIz8wXgr5COZwL5/Y/ITo0pSDdr9hpGGV/rWNbn/kKKxZNyOUVhnU2lCAhfMzwQesX8RApELSZ968VsoK25fmzJvKGDKYWs7EtdRPsLcBbUvukuxED+8luwdFjbFgJv/zpK3woR5zOHwub2lr8fzo7A',

'uaxnoYECB29Nq/hsfKIzEme6hCienuT6RNDEm2OpXCSpzBGFygZj94+ocsH3K/bmTRyZafoz4z+UdPXjQhX5+LjYf3HGylHBkxO2tqFz0O9/ZWRqGiTmVS40klUxnUc+K+CTi3UopSH+y+JodjhM0z8ABMuKNVXupeT
From: Tom St Denis on

mistral wrote:
> some people consider that encoding of javascript code on html page is
> very weak, easily crackable, and unreliable. May be. Nevertheless, what
> data is encoded below, and what enctyption method used?

It appears that you use MD5 to hash the password and then RC4 to
decrypt the data.

Assuming the password wasn't trivial why would you assume we could
break this?

BTW, if you use RC4 to encrypt the message you don't have to obfuscate
your code since the secrecy lies in the key not the code.

And your code is horrible btw ...

Tom

From: mistral on

TC пиÑ?ал(а):

> mistral wrote:
>
> > the idea was to test how strong is protection (it was encrypted
> > with simple standard software).
>
> I still don't get it.
>
> If the password and decryption procedure are fully included in the code
> you gave, then, it is trivially simple to decrypt the ciphertext. You
> simply de-obfuscate the code, find the decryption procedure, then call
> that procedure, with the known arguments.
>
> Conversely, if the password and decryption procedure are -not- fully
> included in the code you gave, and the cipher is a decent one, then, it
> should -not- be possible to decrypt the ciphertext.
>
> There's nothing new there. The exact same comments would apply, no
> matter what language you coded it in. There's no point *actually doing
> it*, when you can work it out "in principle".
>
> Of course you can code a strong cipher in Javascript. But if you
> provide a *self decrypting ciphertext* to a web browser, then, a human
> person can decrypt that ciphertext, just like the web browser can.
>
> Yes? No?
>
> TC (MVP MSAccess)
> http://tc2.atspace.com
------------


Code protection based on encoding of script and decrypting in browser
with another script ('public' function) is intended for protection from
robots(software) and for non tech users.

First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6
Prev: M.peg biss key finder
Next: encrypt in c# and decrypt in c++