Git.framework Reference Library

NSData(SHA1) Category Reference

NSData(SHA1) Category Reference

Declared in NSData+SHA1.h

Overview

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_.

Tasks

Instance Methods

sha1Digest

- (NSData *)sha1Digest
Return Value

SHA1 digest of the receivers contents.

Discussion

Returns the SHA1 digest of the receivers contents.

Declared In
NSData+SHA1.h

sha1DigestString

- (NSString *)sha1DigestString
Return Value

String with the SHA1 digest of the receivers contents.

Discussion

Returns a string with the SHA1 digest of the receivers contents.

Declared In
NSData+SHA1.h

Last updated: 2011-2-20