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:
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)