mirror of
https://github.com/krzyzanowskim/CryptoSwift.git
synced 2026-05-07 20:12:26 +00:00
Merge pull request #1061 from sjudd/patch-1
Use `.sha2(.sha256)` for PBKDF2 in readme
This commit is contained in:
@@ -316,7 +316,7 @@ try CMAC(key: key).authenticate(bytes)
|
||||
let password: Array<UInt8> = Array("s33krit".utf8)
|
||||
let salt: Array<UInt8> = Array("nacllcan".utf8)
|
||||
|
||||
let key = try PKCS5.PBKDF2(password: password, salt: salt, iterations: 4096, keyLength: 32, variant: .sha256).calculate()
|
||||
let key = try PKCS5.PBKDF2(password: password, salt: salt, iterations: 4096, keyLength: 32, variant: .sha2(.sha256)).calculate()
|
||||
```
|
||||
|
||||
```swift
|
||||
|
||||
Reference in New Issue
Block a user