We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c9bdb commit 8654756Copy full SHA for 8654756
1 file changed
Xcodes/AppleAPI/Sources/AppleAPI/Client.swift
@@ -313,6 +313,7 @@ public class Client {
313
let hashedPasswordDataRaw = sha256(data: passwordData)
314
let hashedPasswordData = switch srpProtocol {
315
case .s2k: hashedPasswordDataRaw
316
+ // the legacy s2k_fo protocol requires hex-encoding the digest before performing PBKDF2.
317
case .s2k_fo: Data(hashedPasswordDataRaw.hexEncodedString().lowercased().utf8)
318
}
319
0 commit comments