Inherits from NSObject
Declared in AGHash.h
AGHash.m

Overview

Class that create a message digest using SHA2 hash function

Instance Methods

digest:

Create a message digest based on the string provided.

- (NSData *)digest:(NSString *)str

Parameters

str

The raw text.

Return Value

an NSData object containing the message digest.

Discussion

Create a message digest based on the string provided.

Declared In

AGHash.h

init:

Initialize with the Hash function provided.

- (id)init:(char)algorithm

Parameters

algorithm

The length of hash function e.g. CC_SHA512_DIGEST_LENGTH or CC_SHA256_DIGEST_LENGTH

Return Value

The AGHash object.

Discussion

Initialize with the Hash function provided.

Declared In

AGHash.h