Index: lib/src/digest.dart |
diff --git a/lib/src/digest.dart b/lib/src/digest.dart |
index 2e92fe21c48485844a2ad9f54d3ff4b361c9d807..14631b74a3f12535bf34f5d3178a6e28421e99ba 100644 |
--- a/lib/src/digest.dart |
+++ b/lib/src/digest.dart |
@@ -2,6 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+import 'package:collection/collection.dart'; |
import 'package:convert/convert.dart'; |
/// A message digest as computed by a [Hash] or [HMAC] function. |
@@ -28,6 +29,8 @@ class Digest { |
return result == 0; |
} |
+ int get hashCode => const IterableEquality().hash(bytes); |
+ |
/// The message digest as a string of hexadecimal digits. |
String toString() => hex.encode(bytes); |
} |