Crates.io | aegisvault |
lib.rs | aegisvault |
version | |
source | src |
created_at | 2024-10-30 03:52:44.699047 |
updated_at | 2025-01-13 08:29:21.32236 |
description | Convert otpauth URI file to Encrypted Aegis vault JSON on stdout |
homepage | |
repository | https://github.com/pepa65/aegisvault |
max_upload_size | |
id | 1427997 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Convert otpauth URI file to Encrypted Aegis vault JSON file
wget https://github.com/pepa65/argisvault/releases/download/0.2.2/aegisvault
sudo mv aegisvault /usr/local/bin
sudo chown root:root /usr/local/bin/aegisvault
sudo chmod +x /usr/local/bin/aegisvault
If not installed yet, install a Rust toolchain, see https://www.rust-lang.org/tools/install
cargo install aegisvault
cargo install --git https://github.com/pepa65/aegisvault
git clone https://github.com/pepa65/aegisvault
cd aegisvault
rustup target add x86_64-unknown-linux-musl
cargo rel # Alias in .cargo/config.toml
The binary will be at target/x86_64-unknown-linux-musl/release/aegisvault
Even without a full Rust toolchain, rust binaries can be installed with the static binary cargo-binstall
:
# Install cargo-binstall for Linux x86_64
# (Other versions are available at <https://crates.io/crates/cargo-binstall>)
wget github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
tar xf cargo-binstall-x86_64-unknown-linux-musl.tgz
sudo chown root:root cargo-binstall
sudo mv cargo-binstall /usr/local/bin/
Only a linux-x86_64 (musl) binary available: cargo-binstall aegisvault
It will be installed in ~/.cargo/bin/
which will need to be added to PATH
!
aegisvault 0.2.2 - Convert otpauth URI file to Encrypted Aegis vault JSON on stdout
Usage: aegisvault <URI_FILE>
Arguments:
<URI_FILE> The otpauth URI inputfile
Options:
-h, --help Print help
-V, --version Print version
otpauth://TYPE/NAME?secret=SECRET&algorithm=HMAC_ALGORITHM&digits=LENGTH&period=PERIOD&issuer=ISSUER
TYPE
can be totp
/hotp
/steam
/motp
/yandex
.NAME
should not contain a :
(colon) or %
(percent), as it messes with URI encoding.SECRET
is the base32 RFC3548 seed (without the =
padding!) for the OTPs.TYPE
, NAME
and SECRET
are mandatory.HMAC_ALGORITHM
is one of: SHA1
(the default), SHA256
or SHA512
.LENGTH
for digits
is most often 6
(default), but can be set to 5
(for Steam), 7
(Twitch) or 8
(Microsoft).PERIOD
is almost always 30
(the default).HMAC_ALGORITHM
, LENGTH
and PERIOD
should be given but are optional,
and will be set to their respective default values.GPLv3