deriveKey (method)
Generates a strong cryptographic key from a password.
Syntax
- (void)deriveKey:(int)keyBits :(NSString*)password :(NSString*)salt;
public func deriveKey(_ keyBits: Int32, _ password: String, _ salt: String) throws -> Void
Remarks
Use this method to generate a cryptographically strong key of a needed length from a password.
This method uses a general-purpose PBKDF2 function with PRF1 and 2048 iterations.