AGPBKDF2 Class Reference
Inherits from | NSObject |
Declared in | AGPBKDF2.h AGPBKDF2.m |
Overview
Class that derives a key from a text password/passphrase using the PBKDF2 algorithm provided by CommonCrypto.
Instance Methods
deriveKey:
Derive a key from text password/passphrase.
- (NSData *)deriveKey:(NSString *)password
Parameters
- password
The password/passphrase to use for key derivation.
Return Value
an NSData object containing the derived key.
Discussion
Derive a key from text password/passphrase.
Declared In
AGPBKDF2.h
deriveKey:salt:
Derive a key from text password/passphrase.
- (NSData *)deriveKey:(NSString *)password salt:(NSData *)salt
Parameters
- password
The password/passphrase to use for key derivation.
- salt
A randomly chosen value used used during key derivation.
Return Value
an NSData object containing the derived key.
Discussion
Derive a key from text password/passphrase.
Declared In
AGPBKDF2.h
deriveKey:salt:iterations:
Derive a key from text password/passphrase.
- (NSData *)deriveKey:(NSString *)password salt:(NSData *)salt iterations:(NSUInteger)iterations
Parameters
- password
The password/passphrase to use for key derivation.
- salt
A randomly chosen value used used during key derivation.
- iterations
The number of iterations against the cryptographic hash.
Return Value
an NSData object containing the derived key.
Discussion
Derive a key from text password/passphrase.
Declared In
AGPBKDF2.h