Declared in | NSData+SHA1.h |
---|
The category provides SHA1 hashing of NSData
objects.
The hashing is implemented using the CommonCrypto API which is available on both the Mac OS and iPhone OS platforms. It is very similar to the OpenSSL implementation, the only real difference being that the CommonCrypto macros are prefixed with CC_
.
- (NSData *)sha1Digest
SHA1 digest of the receivers contents.
Returns the SHA1 digest of the receivers contents.
NSData
+SHA1.h
- (NSString *)sha1DigestString
String with the SHA1 digest of the receivers contents.
Returns a string with the SHA1 digest of the receivers contents.
NSData
+SHA1.h
Last updated: 2011-2-20