Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
feat: switch back to mainline keepass-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed Dec 31, 2023
1 parent 47d4160 commit 34cb807
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# Formats
# keepass = { version = "0.6", features = ["save_kdbx4", "totp"] }
keepass = { version = "0.6", features = ["save_kdbx4", "totp"] }
aegis-vault = "*"

[dependencies.keepass]
git = "https://github.com/sseemayer/keepass-rs"
branch = "public-totp-fields"
# [dependencies.keepass]
# git = "https://github.com/sseemayer/keepass-rs"
# branch = "public-totp-fields"
# path = "../keepass-rs"
features = ["save_kdbx4", "totp"]
# features = ["save_kdbx4", "totp"]
10 changes: 5 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@

cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
# This hash need to be updated everytime you bump the version of the keepass-rs
# library.
"keepass-0.0.0-placeholder-version" = "sha256-QH9j2pLhx6p/HiGd6b5YoUePFuZGy5nbX7H+UNpVUeU=";
};
# outputHashes = {
# This hash need to be updated everytime you bump the version of the keepass-rs
# library.
# "keepass-0.0.0-placeholder-version" = "sha256-QH9j2pLhx6p/HiGd6b5YoUePFuZGy5nbX7H+UNpVUeU=";
# };
};

meta = with pkgs.lib; {
Expand Down
4 changes: 2 additions & 2 deletions src/aegis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ fn export_entry(entry: &keepass::db::Entry) -> Option<Entry> {
let mut aegis_entry = Entry::default();
aegis_entry.method = Method::TOTP;
aegis_entry.label = entry_title.to_string();
aegis_entry.issuer = Some(totp.issuer);
aegis_entry.info.secret = keepass::db::TOTP::dump_secret(&totp.secret);
aegis_entry.issuer = Some(totp.issuer.clone());
aegis_entry.info.secret = totp.get_secret();
aegis_entry.info.period = Some(totp.period.try_into().unwrap());
aegis_entry.info.digits = totp.digits;
aegis_entry.info.counter = None;
Expand Down

0 comments on commit 34cb807

Please sign in to comment.