-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update deps, remove deoxys, and bump version
- Loading branch information
1 parent
77cb5f6
commit 1eade1c
Showing
10 changed files
with
57 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
[package] | ||
name = "cryptyrust_cli" | ||
version = "3.0.0" | ||
version = "3.1.0" | ||
authors = ["Antidote1911 <[email protected]>"] | ||
description = "A simple but strong file encryption utility in Rust." | ||
repository = "https://github.com/Antidote1911/cryptyrust/" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
cryptyrust_core = { path = "../core" } | ||
rpassword = "6.0.1" | ||
clap = { version = "3.1.18", features = ["derive","cargo"] } | ||
anyhow = "1.0.57" | ||
rpassword = "7.3.1" | ||
clap = { version = "4.5.4", features = ["derive","cargo"] } | ||
anyhow = "1.0.86" | ||
|
||
[dev-dependencies] | ||
assert_cmd = "2.0.4" | ||
assert_fs = "1.0.7" | ||
assert_cmd = "2.0.14" | ||
assert_fs = "1.1.1" | ||
|
||
[[bin]] | ||
name = "cryptyrust_cli" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
use clap::{AppSettings, ArgGroup, ArgEnum, Parser}; | ||
use clap::{ArgGroup, Parser}; | ||
use cryptyrust_core::{Algorithm, BenchMode, DeriveStrength, HashMode}; | ||
|
||
const AUTHOR: &str = " | ||
const ABOUT: &str = " | ||
A simple but strong file encryption utility in Rust. | ||
Author : Fabrice Corraire <[email protected]> | ||
Github : https://github.com/Antidote1911/ | ||
"; | ||
|
||
#[derive(Parser)] | ||
#[clap(global_setting(AppSettings::DeriveDisplayOrder))] | ||
#[clap(about, author=AUTHOR, version)] | ||
|
||
#[clap(about=ABOUT, author, version)] | ||
|
||
#[clap(group(ArgGroup::new("mode").required(true) | ||
.args(&["encrypt", "decrypt"]), | ||
|
@@ -37,36 +38,35 @@ pub struct Cli { | |
password: Option<String>, | ||
|
||
/// Choose algorithm. Ignored in decryption mode | ||
#[clap(short, long, arg_enum,value_name = "ALGO", default_value = "aesgcm")] | ||
#[clap(short, long, value_enum,value_name = "ALGO", default_value = "aesgcm")] | ||
algo: Algo, | ||
|
||
/// Choose password derivation strength | ||
#[clap(short, long, arg_enum,value_name = "STRENGTH", default_value = "interactive")] | ||
#[clap(short, long, value_enum,value_name = "STRENGTH", default_value = "interactive")] | ||
strength: Strength, | ||
|
||
/// File should be valid UTF-8 and contain only the password with no newline. | ||
#[clap(short='f', long, value_name = "PASSWORD_FILE")] | ||
passwordfile: Option<String>, | ||
|
||
/// Optional, output hash | ||
#[clap(short, long)] | ||
#[clap(long)] | ||
hash: bool, | ||
|
||
/// Optional, bench mode | ||
#[clap(short, long)] | ||
#[clap(long)] | ||
bench: bool, | ||
|
||
} | ||
|
||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ArgEnum)] | ||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, clap::ValueEnum)] | ||
pub enum Algo { | ||
Aesgcm, | ||
Chacha, | ||
Deoxys, | ||
Aesgcmsiv, | ||
} | ||
|
||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ArgEnum)] | ||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, clap::ValueEnum)] | ||
pub enum Strength { | ||
Interactive, | ||
Moderate, | ||
|
@@ -95,7 +95,6 @@ impl Cli { | |
Algo::Aesgcm => Algorithm::Aes256Gcm, | ||
Algo::Aesgcmsiv => Algorithm::Aes256GcmSiv, | ||
Algo::Chacha => Algorithm::XChaCha20Poly1305, | ||
Algo::Deoxys => Algorithm::DeoxysII256, | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
[package] | ||
name = "cryptyrust_core" | ||
version = "3.0.0" | ||
version = "3.0.1" | ||
authors = ["Antidote1911 <[email protected]>"] | ||
edition = "2021" | ||
|
||
[dependencies] | ||
argon2 = "0.4.0" | ||
argon2 = "0.4.1" | ||
aead = { version = "0.4.3", features = ["std", "stream"] } | ||
aes-gcm = "0.9.4" | ||
aes-gcm-siv = "0.10.3" | ||
chacha20poly1305 = "0.9.0" | ||
deoxys = "0.0.2" | ||
sha3 = "0.10.1" | ||
blake3 = "1.3.1" | ||
chacha20poly1305 = "0.9.1" | ||
sha3 = "0.10.8" | ||
blake3 = "1.5.1" | ||
rand = "0.8.5" | ||
thiserror = "1.0.30" | ||
indicatif = "0.17.6" | ||
thiserror = "1.0.61" | ||
indicatif = "0.17.8" | ||
zeroize = "1.3.0" | ||
|
||
[dev-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.