Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kabiroberai committed Nov 5, 2024
1 parent 85c9bdb commit 8654756
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Xcodes/AppleAPI/Sources/AppleAPI/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ public class Client {
let hashedPasswordDataRaw = sha256(data: passwordData)
let hashedPasswordData = switch srpProtocol {
case .s2k: hashedPasswordDataRaw
// the legacy s2k_fo protocol requires hex-encoding the digest before performing PBKDF2.
case .s2k_fo: Data(hashedPasswordDataRaw.hexEncodedString().lowercased().utf8)
}

Expand Down

0 comments on commit 8654756

Please sign in to comment.