--- a/lib/Code/TidyAll.pm
+++ b/lib/Code/TidyAll.pm
@@ -7,7 +7,7 @@
   qw(abs2rel basename can_load dirname dump_one_line mkpath read_dir read_file rel2abs tempdir_simple uniq write_file);
 use Code::TidyAll::Result;
 use Date::Format;
-use Digest::SHA1 qw(sha1_hex);
+use Digest::SHA qw(sha1_hex);
 use File::Find qw(find);
 use File::Zglob;
 use List::MoreUtils qw(uniq);
--- a/lib/Code/TidyAll/Cache.pm
+++ b/lib/Code/TidyAll/Cache.pm
@@ -1,6 +1,6 @@
 package Code::TidyAll::Cache;
 $Code::TidyAll::Cache::VERSION = '0.20';
-use Digest::SHA1 qw(sha1_hex);
+use Digest::SHA qw(sha1_hex);
 use Code::TidyAll::Util qw(dirname mkpath read_file write_file);
 use Moo;
 
--- a/lib/Code/TidyAll/Git/Prereceive.pm
+++ b/lib/Code/TidyAll/Git/Prereceive.pm
@@ -3,7 +3,7 @@
 use Code::TidyAll;
 use Code::TidyAll::Util qw(dirname realpath tempdir_simple read_file write_file);
 use Capture::Tiny qw(capture);
-use Digest::SHA1 qw(sha1_hex);
+use Digest::SHA qw(sha1_hex);
 use IPC::System::Simple qw(capturex run);
 use Moo;
 use Try::Tiny;
