Should sign_update.rb produce the same result each time given the same exact inputs?

Asked by Harvey Chapman

If I run sign_update.rb multiple times, the result changes each time. Is this normal?

Example:

harveybook:sparkle_keys hchapman$ ruby sign_update.rb NOTEPAD.zip dsa_priv.pem
MC0CFQCNtD85giGLRFdT64mSiu2aq8C7mwIURHy52Zl7MDn5UnwktuOyBYCwWgg=
harveybook:sparkle_keys hchapman$ ruby sign_update.rb NOTEPAD.zip dsa_priv.pem
MCwCFAW1vyvaLb4QfVuiHI5vxKKWQ2ZjAhQF6S2XWlQUMn8W4zlu7R61ySoruw==
harveybook:sparkle_keys hchapman$ ruby sign_update.rb NOTEPAD.zip dsa_priv.pem
MC0CFH7yBbUYIrgoOmSqAsYr3ljIFuoHAhUArSTOLGmfk+P6y4tq1MhXtsuJtww=
harveybook:sparkle_keys hchapman$

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
Andy Matuschak
Solved:
Last query:
Last reply:
Revision history for this message
Best Andy Matuschak (andymatuschak) said :
#1

Yes, there's a random component to the key generation. http://en.wikipedia.org/wiki/Digital_Signature_Algorithm

Revision history for this message
Harvey Chapman (hchapman-launchpad) said :
#2

Thanks. I thought that I might have been doing something wrong.

One quick suggestion: update the following page:
http://github.com/andymatuschak/Sparkle/wiki/publishing-an-update
to either point to or include a fully complete RSS/XML example (like the one below) for those of us not familiar with the format.
http://andymatuschak.org/files/sparkletestcast.xml

Revision history for this message
Andy Matuschak (andymatuschak) said :
#3

Done. Thanks for the suggestion.

Revision history for this message
Harvey Chapman (hchapman-launchpad) said :
#4

Excellent! No, thank you for Sparkle.