Re: [OT] md5 or sha-1 on OSX

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69510
interpreted = N
texte = On 27 Nov 2007, at 12:19, Tom Duke wrote: > Thanks - that's working great for me. Is there a similar method for > generating a sha1 hash? Much Googling hasn't enlightened me on this. You can run any terminal commands using the WebDNA [shell] tag, from looking at '[shell]/full/usr/bin/openssl sha1 /path/to/file_to_sha1[/shell]' Which should answer back something like... 'SHA1(/full/path/to/file_to_sha1)= 2eb722f340d4e57aa79bb5422b94d556888cbf38' There appears to be a space before the hash key so use [middle] to pull out the sha1 hash out of that '[middle startafter= ][shell]/usr/bin/openssl sha1 /full/path/to/ file_to_sha1[/shell][/middle]' Gives you... '2eb722f340d4e57aa79bb5422b94d556888cbf38' By the way I use the single quote marks ' ' around this and the previous md5 examples to see exactly what is returned. They are needed in the code. 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: [OT] md5 or sha-1 on OSX ( Donovan Brooke 2007)
  2. Re: [OT] md5 or sha-1 on OSX ( Tom Duke 2007)
  3. Re: [OT] md5 or sha-1 on OSX ( Donovan Brooke 2007)
  4. Re: [OT] md5 or sha-1 on OSX ( Christer Olsson 2007)
  5. Re: [OT] md5 or sha-1 on OSX ( Tom Duke 2007)
  6. Re: [OT] md5 or sha-1 on OSX ( "Dan Strong" 2007)
  7. Re: [OT] md5 or sha-1 on OSX ( Paul Willis 2007)
  8. Re: [OT] md5 or sha-1 on OSX ( Tom Duke 2007)
  9. Re: [OT] md5 or sha-1 on OSX ( Paul Willis 2007)
  10. Re: [OT] md5 or sha-1 on OSX ( Donovan Brooke 2007)
  11. Re: [OT] md5 or sha-1 on OSX ( Donovan Brooke 2007)
  12. [OT] md5 or sha-1 on OSX ( Tom Duke 2007)
On 27 Nov 2007, at 12:19, Tom Duke wrote: > Thanks - that's working great for me. Is there a similar method for > generating a sha1 hash? Much Googling hasn't enlightened me on this. You can run any terminal commands using the WebDNA [shell] tag, from looking at '[shell]/full/usr/bin/openssl sha1 /path/to/file_to_sha1[/shell]' Which should answer back something like... 'SHA1(/full/path/to/file_to_sha1)= 2eb722f340d4e57aa79bb5422b94d556888cbf38' There appears to be a space before the hash key so use [middle] to pull out the sha1 hash out of that '[middle startafter= ][shell]/usr/bin/openssl sha1 /full/path/to/ file_to_sha1[/shell][/middle]' Gives you... '2eb722f340d4e57aa79bb5422b94d556888cbf38' By the way I use the single quote marks ' ' around this and the previous md5 examples to see exactly what is returned. They are needed in the code. 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:

Variables (1999) Pricing based on quantity (2000) WebDNA 4.5 & iTools 7 (2003) Max Record length restated as maybe bug (1997) WebCat b13 CGI -shownext- (1997) Grouping fields help (2004) RE: Include (1998) Resume Catalog ? (1997) html delivery (1997) Username for Admin Group (1997) BGcolor (1997) RE: PIXO support (1997) More on the email templates (1997) Applescript, WebDNA, and PDF (1997) Summ=T Problem (1997) Searching Dates (2000) SiteGuard Use Question (1997) Only charge card when product shipped ? (1997) Tab Charactor (1997) So when do we get something similar? (1998)