Skip to content
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2b2e181
init
plyght Nov 30, 2025
356a1c5
updates
plyght Dec 1, 2025
48f0bfa
Refactor KeeShare tests to use PwGroup and update signature verificat…
plyght Dec 1, 2025
58e4b42
Add signature verification enhancements in KeeShare tests and core logic
plyght Dec 1, 2025
d2d17ec
Enhance KeeShare synchronization logic by implementing non-destructiv…
plyght Dec 1, 2025
3017279
Refactor KeeShare to ensure proper resource management by closing the…
plyght Dec 1, 2025
92085a0
Implement background synchronization for KeeShare groups and enhance …
plyght Dec 1, 2025
06f095f
Refactor SyncOtpAuxFile constructor
plyght Dec 2, 2025
21e0ad9
Refactor LoadDb to wrap operation finished handler for KeeShare integ…
plyght Dec 2, 2025
81d6a4a
Enhance KeeShare integration
plyght Dec 2, 2025
94b780b
Refactor public key extraction in KeeShare to utilize X509Certificate…
plyght Dec 2, 2025
b27bad2
Enhance public key extraction in KeeShare by adding support for both …
plyght Dec 2, 2025
442b5e2
Refine PEM format handling in KeeShare by changing checks from Contai…
plyght Dec 2, 2025
56653bd
Implement KeeShare export functionality on database save, enhancing s…
plyght Dec 2, 2025
90fa4e1
Refactor KeeShare tests and Adjust layout properties for better UI re…
plyght Dec 2, 2025
103b2ba
refactor KeeShare public key handling and improve path resolution logic
plyght Dec 2, 2025
93bc6e8
Add static callback for KeeShare check after database load in LoadDb …
plyght Dec 2, 2025
394b1c7
Dispose of kdbxMem in KeeShare to prevent memory leaks during signatu…
plyght Dec 2, 2025
40644a0
Enhance error handling in KeeShare export
plyght Dec 3, 2025
51a84df
Improve null checks and error handling in KeeShare methods
plyght Dec 3, 2025
67c62a7
Add null check for path parameter in ResolvePath method of KeeShare c…
plyght Dec 3, 2025
115cb7e
add workload restore in yml files
PhilippC Dec 8, 2025
eb526a1
fix workload restore in yml files
PhilippC Dec 8, 2025
b21a523
Refactor KeeShare methods
plyght Dec 8, 2025
bd4130b
Add KeeShare functionality for group management
plyght Dec 8, 2025
7a23019
Merge branch 'master' of https://github.com/plyght/keepass2android
plyght Dec 8, 2025
6e2a688
nhance error handling in KeeShare methods
plyght Dec 8, 2025
db3e52f
Enhance error handling in operation callbacks
plyght Dec 8, 2025
32a19f9
Refactor KeeShare key management
plyght Dec 8, 2025
31fdd1b
Refactor activity context usage and enhance error handling in KeeShar…
plyght Dec 8, 2025
9250a08
up
plyght Dec 10, 2025
f0b5e2e
Improve error handling for UUID reconstruction
plyght Dec 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions src/keepass2android-app/KeeShare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,23 @@ internal static bool VerifySignatureCore(string trustedCertificate, byte[] kdbxD
try
{
string pemText = trustedCertificate.Trim();
var cert = X509Certificate2.CreateFromPem(pemText);
publicKeyBytes = cert.GetPublicKey();

if (pemText.Contains("-----BEGIN CERTIFICATE-----"))
Comment thread
plyght marked this conversation as resolved.
Outdated
{
var cert = X509Certificate2.CreateFromPem(pemText);
publicKeyBytes = cert.GetPublicKey();
}
else if (pemText.Contains("-----BEGIN PUBLIC KEY-----"))
{
var lines = pemText.Split('\n');
var base64Lines = lines.Where(l => !string.IsNullOrWhiteSpace(l) && !l.Trim().StartsWith("-----"));
string base64Content = string.Join("", base64Lines).Trim();
publicKeyBytes = Convert.FromBase64String(base64Content);
}
else
{
publicKeyBytes = Convert.FromBase64String(pemText);
}
Comment thread
plyght marked this conversation as resolved.
}
catch (Exception)
{
Expand Down
Loading