Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
External code |
Wed, Feb 12 2014 8:05 AM | Permanent 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 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. 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 AM | Permanent 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 AM | Permanent 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/ |
This web page was last updated on Thursday, March 28, 2024 at 08:36 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |