hash(into:)
Hashes the essential components of the digest by feeding them into the given hash function.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func hash(into hasher: inout Hasher)
Parameters
- hasher
The hash function to use when combining the components of the digest.
This method is part of the digest’s conformance to Swift standard library’s doc://com.apple.documentation/documentation/swift/hashable protocol, making it possible to compare digests. Don’t confuse that hashing with the cryptographically secure hashing that you use to create the digest in the first place by, for example, calling hash(data:)
.