Skip to content

Commit

Permalink
Merge pull request #1061 from sjudd/patch-1
Browse files Browse the repository at this point in the history
Use `.sha2(.sha256)` for PBKDF2 in readme
  • Loading branch information
krzyzanowskim authored Dec 9, 2024
2 parents d4db480 + 62b88be commit 488e309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 488e309

Please sign in to comment.