Data
extension Data: CryptoDigest
Extension for Data to return an Data object containing the digest.
-
Calculates the Message Digest for this data.
Declaration
Swift
public func digest(using algorithm: Digest.Algorithm) -> Data
Parameters
algorithm
The digest algorithm to use
Return Value
An
Data
object containing the message digest