From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin-apps@cygwin.com
Subject: [PATCH] genini.pl: create SHA512 instead of MD5 checksums
Date: Tue, 31 Mar 2015 19:33:00 -0000 [thread overview]
Message-ID: <87pp7pvu6h.fsf@Rainer.invalid> (raw)
diff --git a/genini.pl b/genini.pl
index 973ecfd..f5b13ea 100755
--- a/genini.pl
+++ b/genini.pl
@@ -6,7 +6,7 @@
# for details.
#
use File::Basename;
-use Digest::MD5;
+use Digest::SHA;
use Getopt::Long;
use strict;
@@ -228,9 +228,9 @@ sub filer {
myerror "can't open $f - $!" unless $main::okmissing{$what};
return undef;
};
- my $md5 = Digest::MD5->new;
- $md5->addfile(\*F);
- $x->{$what} = join(' ', $f, -s $f, $md5->hexdigest);
+ my $sha512 = Digest::SHA->new(512);
+ $sha512->addfile(\*F);
+ $x->{$what} = join(' ', $f, -s $f, $sha512->hexdigest);
}
sub tarball {
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
next reply other threads:[~2015-03-31 19:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 19:33 Achim Gratz [this message]
2015-06-22 20:27 ` Achim Gratz
2015-06-23 7:57 ` Corinna Vinschen
2015-06-23 17:53 ` Achim Gratz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pp7pvu6h.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).