Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:09 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: MD5 Generation
PostPosted: February 19th, 2007, 3:46 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
I am currently using MD5 to generate an encryption of a text string in Opus using the Javascript MD5 code supplied here http://pajhome.org.uk/crypt/md5/md5.js it works great in Opus and knocks out encryptions. The problem is that I want to use the same code on a website to knock out the same code.

I assumed that I could just create a webpage with the same script and both would then generate the same encryption. But is doesn't, Opus EXE creates a different code than the Javascript webpage and Opus Flash creates a different code again.

So can someone help, is there something I need to do to get the same results across all platforms. I assume Opus handles maths function a bit differently to Javascript do I need to change something and if so any help would be fantastic.

http://pajhome.org.uk/crypt/md5/


Joe


Top
 Profile  
 
 Post subject:
PostPosted: February 22nd, 2007, 11:51 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
er -- if you are getting different results they are not MD5 hashes.
That script does not work properly in Opus -- According to the self test in the .js script you are referring to, the MD5 hash of "abc" is supposed to be

900150983cd24fb0d6963f7d28e17f72

but Opus returns

a6d3f00e1fc7937be5b78624ce26d081

which is not an MD5 hash of "abc" -- it just "looks" like one.
If you use javascript functions in Opus, use ones written for older versions of Javascript (v1.0 or v1.1) as these are more likely to work in Opus.

The attached pub contains a Javascript 1.1 MD5 script that works correctly in an ordinary Opus XE pub, but I doubt the required bit shifting functions (<<,>>,<<<,>>>,^) were carried over for it to work in a Flex pub.

You might need Flash for this.
I've enclosed an swf made with Flash that produces MD5 output.

cheers
Paul


Last edited by Paul on February 23rd, 2007, 8:28 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: February 23rd, 2007, 5:03 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
That is fantastic work,

Thanks for the Opus file, works great. This solves a big headache I have had for the past couple of weeks.

I did not know that about Opus and different versions of Javascript. Do you know if Digital Workshop plan on implementing the latest versions of Javascript into the next edition of Opus?


Joe


Top
 Profile  
 
 Post subject:
PostPosted: February 23rd, 2007, 8:52 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
josephroddy wrote:
Do you know if Digital Workshop plan on implementing the latest versions of Javascript into the next edition of Opus?


Probably 90% of Opus users have no interest in scripting, so I don't think that DW would have it on their "must do" list -- which I can understand.
Same applies to improving Flex's script support.

Paul


Top
 Profile  
 
 Post subject:
PostPosted: February 26th, 2007, 3:24 pm 
Offline

Joined: December 25th, 2004, 3:31 pm
Posts: 178
paul wrote:
Probably 90% of Opus users have no interest in scripting

I would hope that more users are interested in scripting than 10% as it's the best part of Opus and makes development so quick, and Opus Script is really easy to use compared to ActionScript.

For me I would like to see Digital Workshop put more work into scripting and add more scripting functions and features to keep it in-line with development across Opus.

I try and do most development through scripting as it saves time and easier to edit script than mess around with lots of actions.


Top
 Profile  
 
 Post subject:
PostPosted: February 26th, 2007, 5:07 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Definately better scripting possibilities !!!!

We use scripting in Opus for 100% of our projects. And we use it a lot.


Top
 Profile  
 
 Post subject: Re: MD5 Generation
PostPosted: February 18th, 2012, 2:20 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Noticed the MD5 scripting here, has anyone implemented AES encryption via OpusScript?

More secure than MD5, but I am having issues implementing it in OpusScript.


Thanks.

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


Top
 Profile  
 
 Post subject: Re: MD5 Generation
PostPosted: August 27th, 2013, 4:34 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
Hi, Does anyone have a copy of the above MD5 JavaScript file still? Thanks


Top
 Profile Visit website  
 
 Post subject: Re: MD5 Generation
PostPosted: August 30th, 2013, 3:47 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
I use that in an application. I should be able to pull out the script file and post here. If I don't send by Monday, send me a PM.

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group