Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread External code
Wed, Feb 12 2014 8:05 AMPermanent Link

Matthew Jones

I found some MD5 hash code on the internet (got to be good yes? 8-) and I'd like to
call it from my EWB code.

The javascript starts:
-------
var MD5 = function (string) {
-------
and is basically a function that takes a string and returns a string.

Looking at the examples I have, they seem to be related to a class somehow, making
properties in the EWB code to match. But this doesn't have anything to work on.

This seems to work:
external function MD5(szPassword : String) : String;

Is that all there is to it, or is there a problem with that?

(Full code is at
http://stackoverflow.com/questions/4121629/password-encryption-at-client-side)

/Matthew Jones/
Wed, Feb 12 2014 8:57 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< This seems to work:
external function MD5(szPassword : String) : String;

Is that all there is to it, or is there a problem with that? >>

Yep, that's it.  You're just telling the compiler how to resolve the
reference and type-check it properly.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Feb 12 2014 8:58 AMPermanent Link

Matthew Jones

I read on https://crackstation.net/hashing-security.htm that I shouldn't hash in
the browser, or rather, it doesn't help much. Might as well pass it back securely
to the server and have it do it. That solves a potential problem of some library
incompatibility too!

Not that this makes a lot of difference to my question, but I thought it worth
posting.

/Matthew Jones/
Sun, Feb 16 2014 3:31 AMPermanent Link

Ronald

Hi Mattew,

I use external script too and I was also very surprised how easy it was.

Ronald

"Matthew Jones"  schreef in bericht
news:memo.20140212130512.7288A@nothanks.nothanks.co.uk...

I found some MD5 hash code on the internet (got to be good yes? 8-) and I'd
like to
call it from my EWB code.

The javascript starts:
-------
var MD5 = function (string) {
-------
and is basically a function that takes a string and returns a string.

Looking at the examples I have, they seem to be related to a class somehow,
making
properties in the EWB code to match. But this doesn't have anything to work
on.

This seems to work:
external function MD5(szPassword : String) : String;

Is that all there is to it, or is there a problem with that?

(Full code is at
http://stackoverflow.com/questions/4121629/password-encryption-at-client-side)

/Matthew Jones/
Image