NSData

@interface NSData : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
@end
  • Calculates the Message Digest for this data.

    Declaration

    Swift

    public func digest(algorithm : Digest.Algorithm) -> Self

    Parameters

    algorithm

    the digest algorithm to use

    Return Value

    an NSData object containing the message digest