Table of Contents
Simple cli OTP app written in Rust.
Build with:
- RUST 1.85+
Build from source:
cargo build --release
The binary is located in target/release/hermes.
Running without arguments shows help.
There are 2 env variables:
HERMES_PASSWORD: Password for codes.HERMES_PATH: Path to codex file.
Commands:
add -a <ALIAS> -c <CODE> [OPTIONS]: Add new record.remove -a <ALIAS> [OPTIONS]: Remove record.update -a <ALIAS> -c <CODE> [OPTIONS]: Update code by alias.rename <OLD ALIAS> <NEW ALIAS> [OPTIONS]: Rename alias.ls [OPTIONS]: Get all OTP codes.ls -a <ALIAS>: Get OTP code by alias.ls -a <PARTIAL MATCH>: Get OTP codes by partial match.config: Show location of the codex file.migrate: Migrate legacy codex format to JSON.
Flags:
-a,--alias: Alias.-c,--code: Code aka Secret.-p,--path: Custom path to the codex file.-u,--unencrypt: WARNING: Store the secret in plain text. Use for debugging only.--password: WARNING: Using this flag leaves password in shell history.-q,--quiet: Only forls -a <ALIAS>. Do not display progress bar.-f [table, json],--format [table, json]: Only forlscommand. Format output as table (default) or as JSON.
Wayland
hermes ls -a my_alias | wl-copy
X11
hermes ls -a my_alias | xclip -selection clipboard
MacOS
hermes ls -a my_alias | pbcopy
cargo test
- https://authenticationtest.com/totpChallenge/
- https://www.verifyr.com/en/otp/check#totp
- https://totp.danhersam.com/
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
Just create an issue if you need something.
Project Link: https://github.com/riccionee/hermes