NSData(MBMessageDigest) Category Reference
Declared in | NSData+MBMessageDigest.h |
---|
Overview
Extends the NSData
class by adding methods for computing secure, one-way
message digest hashes.
– MD5
Computes an MD5 hash from the contents of the receiver.
- (nonnull NSString *)MD5
Return Value
the MD5 hash, as a lowercase hexadecimal string
Declared In
NSData+MBMessageDigest.h
– SHA1
Computes an SHA-1 hash from the contents of the receiver.
- (nonnull NSString *)SHA1
Return Value
the SHA-1 hash, as a lowercase hexadecimal string
Declared In
NSData+MBMessageDigest.h