Data
struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes
-
Calculates the Message Digest for this data.
Declaration
Swift
public func digest(algorithm: Digest.Algorithm) -> Data
Parameters
algorithm
the digest algorithm to use
Return Value
an
NSData
object containing the message digest