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:
Speed Optimization - Mac (1997)
Size limit for tmpl editor ? (1997)
'page impression' techniques for banner ads (1999)
Frames and cart values (1998)
Re[4]: Problem with new formvariables (2000)
Exclamation point (1997)
WCS Newbie question (1997)
Search results templates (1996)
WC 2.0 frames feature (1997)
[SearchString] problem with [search] context (1997)
Problems appending to database (1997)
Multiple Ad databases? (1997)
5.0 Pricing (2003)
WebCat2b15MacPlugin - showing [math] (1997)
Unknown exception in WebDNA 4.5.0 (2003)
Calculating Shipping charges for multiple items andqtys > 1 (1997)
no? marks in the links (2003)
BR (1997)
problem: search crashes webstar (1997)
[OT] Accepting Credit Cards Online (1999)