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:

[cart] generation (1998) Where's Cart Created ? (1997) Execute Applescript (1997) authenticating a second user, the sequel (1997) [replace] has protection feature like [delete]? (2000) webmerchant/ Mac Auth. and CC refunds (1998) Webcat/Webmerchant part II (1998) European dates (1998) SetHeader (1999) Help name our technology! (1997) Rubbish in form fields (2004) encrypt/decrypt failing (2000) No luck with taxes (1997) Connection count (2005) mass mailing (1998) Another question about credit cards (1997) WebCat2: Formulas.db question (1997) [WebDNA] lookup in tables defined in functions - bug? (2016) [WebDNA] Processor Maxing out (2010) WebCatalog NT beta 18 problem (1997)