| Start |
|---|
| Password Based Key Derivation 2 (Swift 3) Password Based Key Derivation can be used both for deriving an encryption key from password text and saving a password for authentication purposes. There are several hash algorithms that can be used including SHA1, SHA256, SHA512 which are provided by this example code. The rounds parameter is used to make the calculation slow so that an attacker will have to spend substantial time on each attempt. Typical delay values fall in the 100ms to 500ms, shorter values can be used if there is unacceptable performance. This example requires Common Crypto Parameters: Example usage: Example Output: |
| Password Based Key Derivation 2 (Swift 2.3) See Swift 3 example for usage information and notes Example usage: Example Output: |
| Password Based Key Derivation Calibration (Swift 2.3) See Swift 3 example for usage information and notes Example usage: Example Output: For 100 msec delay, rounds: 94339 |
| Password Based Key Derivation Calibration (Swift 3) Determine the number of PRF rounds to use for a specific delay on the current platform. Several parameters are defaulted to representative values that should not materially affect the round count. Example usage: Example Output: |
Read Article
https://develop.horje.com/learn/1434/reference