Skip to content

Commit

Permalink
chore: Split the project into a bin and lib crate
Browse files Browse the repository at this point in the history
This is done to make it possible to publish the common vault parsing and
OTP generation parts in other projects if there's any interest.
  • Loading branch information
Granddave committed Mar 16, 2024
1 parent 17114d8 commit 8c32ff0
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 728 deletions.
50 changes: 28 additions & 22 deletions Cargo.lock

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

13 changes: 2 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,15 @@
name = "aegis-rs"
version = "0.3.0"
edition = "2021"

[[bin]]
name = "aegis-rs"
path = "src/bin/cli.rs"
license = "GPL-3.0-or-later"

[dependencies]
aes-gcm = "0.10"
aegis-vault-utils = "0.4"
arboard = "3.2"
base64 = "0.21"
clap = { version = "4.5", features = ["derive", "cargo", "env"] }
color-eyre = "0.6"
console = "0.15"
ctrlc = "3.4"
dialoguer = { version = "0.11", features = ["fuzzy-select"] }
hex = "0.4.3"
libreauth = "0.16.0"
password-hash = "0.5.0"
scrypt = "0.11.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_repr = "0.1"
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ To unlock the Aegis vault Aegis-rs supports the following methods:

- [x] Add password file feature
- [x] Add countdown timer and refresh TOTP code after timeout
- [x] Improve on error handling
- [ ] Support different TOTP algorithms
- [x] TOTP
- [ ] HOTP
- [ ] Steam
- [ ] Yandex
- [x] Support unencrypted vaults
- [ ] Display digits in groups
- [x] Add TOTP to clipboard
- [x] Add CI

## Project history

This project has been divided into a binary (this repo) and a [vault
utility](https://github.com/Granddave/aegis-vault-utils) crate so that other
projects can utilize the parsing and OTP generation functionalities as well.


# License

This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.
26 changes: 0 additions & 26 deletions res/aegis_encrypted.json

This file was deleted.

101 changes: 0 additions & 101 deletions res/aegis_plain.json

This file was deleted.

8 changes: 0 additions & 8 deletions src/lib.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/bin/cli.rs → src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use console::{Style, Term};
use dialoguer::{theme::ColorfulTheme, FuzzySelect, Password};
use std::{env, fs, path::PathBuf, process::exit, time::Duration};

use aegis_rs::{
use aegis_vault_utils::{
otp::{calculate_remaining_time, generate_otp, Entry, EntryInfo},
vault::{parse_vault, PasswordGetter},
};
Expand Down
Loading

0 comments on commit 8c32ff0

Please sign in to comment.