Skip to content

Commit

Permalink
macOS BSK change: De-duplicate passwords on import (#3048)
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme authored Jul 5, 2024
1 parent effc931 commit 761b139
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9946,7 +9946,7 @@
repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 166.0.0;
version = 167.0.0;
};
};
9F8FE9472BAE50E50071E372 /* XCRemoteSwiftPackageReference "lottie-spm" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/DuckDuckGo/BrowserServicesKit",
"state" : {
"revision" : "f23384018ede5aa63777b1c143e81855a16210fd",
"version" : "166.0.0"
"revision" : "5954412504b0cf294f5c0d90d7a0c8dfcd009558",
"version" : "167.0.0"
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion DuckDuckGoTests/MockSecureVault.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ let MockSecureVaultFactory = SecureVaultFactory<MockSecureVault>(
)

final class MockSecureVault<T: AutofillDatabaseProvider>: AutofillSecureVault {

public typealias MockSecureVaultDatabaseProviders = SecureStorageProviders<T>

var storedAccounts: [SecureVaultModels.WebsiteAccount] = []
Expand All @@ -63,6 +62,11 @@ final class MockSecureVault<T: AutofillDatabaseProvider>: AutofillSecureVault {
data
}

func encryptPassword(for credentials: BrowserServicesKit.SecureVaultModels.WebsiteCredentials, key l2Key: Data?, salt: Data?) throws -> BrowserServicesKit.SecureVaultModels.WebsiteCredentials {
.init(account: .init(username: nil, domain: nil), password: nil)
}


func decrypt(_ data: Data, using key: Data) throws -> Data {
data
}
Expand Down

0 comments on commit 761b139

Please sign in to comment.