Re: WebDNA implementation of MD5 algorithm?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57319
interpreted = N
texte = Hi all This is a response to a year old thread about using md5 with Authorize.Net but as I just had to tackle this for a project I thought I would post my solution for the archives... We are implementing a "tradedoubler" deal for a client. On your shopping site receipt page you need to send back to tradedoubler a bunch of variables which include an md5 string (which they call checksum). This is made up of 'a code they send you' + 'the total price' + 'the cart/order number' On OS X md5 is installed by default so typing... md5 -s yourcodehere in the terminal gives you a result like... MD5 ("yourcodehere") = 0c6de308f5776288c6428c78ddae3bd5 (with a hidden LineFeed at the end) So using our required variables in place of 'yourcodehere' and with a bit of webDNA to tidy it all up... [text]checksum=[middle startafter== &endbefore=%0A][shell]/sbin/md5 -s [secretcode][cart][price][/shell][/middle][/text] .... gives you your md5 [checksum] I assume this works for any platform that supports [shell] (and had md5 installed of course) The only 'catch' was I had to add www to the sudoers file in OS X to allow webDNA to use this shell command Paul ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebDNA implementation of MD5 algorithm? ( Paul Willis 2004)
  2. Re: WebDNA implementation of MD5 algorithm? ( "James D. Wilson" 2003)
  3. Re: WebDNA implementation of MD5 algorithm? ( "Gary Krockover" 2003)
  4. Re: WebDNA implementation of MD5 algorithm? ( Clint Davis 2003)
  5. Re: WebDNA implementation of MD5 algorithm? ( Velma Kahn 2003)
  6. Re: WebDNA implementation of MD5 algorithm? ( "John Winningham" 2003)
  7. Re: WebDNA implementation of MD5 algorithm? ( Clint Davis 2003)
  8. Re: WebDNA implementation of MD5 algorithm? ( "James D. Wilson" 2003)
  9. Re: WebDNA implementation of MD5 algorithm? ( "Gary Krockover" 2003)
  10. WebDNA implementation of MD5 algorithm? ( "James D. Wilson" 2003)
Hi all This is a response to a year old thread about using md5 with Authorize.Net but as I just had to tackle this for a project I thought I would post my solution for the archives... We are implementing a "tradedoubler" deal for a client. On your shopping site receipt page you need to send back to tradedoubler a bunch of variables which include an md5 string (which they call checksum). This is made up of 'a code they send you' + 'the total price' + 'the cart/order number' On OS X md5 is installed by default so typing... md5 -s yourcodehere in the terminal gives you a result like... MD5 ("yourcodehere") = 0c6de308f5776288c6428c78ddae3bd5 (with a hidden LineFeed at the end) So using our required variables in place of 'yourcodehere' and with a bit of webDNA to tidy it all up... [text]checksum=[middle startafter== &endbefore=%0A][shell]/sbin/md5 -s [secretcode][cart][price][/shell][/middle][/text] .... gives you your md5 [checksum] I assume this works for any platform that supports [shell] (and had md5 installed of course) The only 'catch' was I had to add www to the sudoers file in OS X to allow webDNA to use this shell command Paul ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Paul Willis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

blank page from template (1997) [OT] Classic Mac (2008) [WebDNA] Linix v 6.2 Server (2013) Webmerchant + Hubby (1998) Problems with ErrorLog on Linux (2000) another problem (1997) Help! WebCat2 bug (1997) Emailer help....! (1997) emailer settings and control questions (1997) security (https) w webcat (1999) New public beta available (1997) Can't find templaes (1997) SSL data to/from webcatalog? (2000) newbie question about zip code search (2003) TEXTAREA and sendmail (1998) Text Area - Line Breaks (1998) Error: Can't open order file! (2000) Browser Problem?!? Still getting Error message using (1997) Does anyone have a TCPconnect that does multiple sends... (2000) Modulo function? (2000)