Skip to content

Commit

Permalink
feat: implement encrypted files transfer
Browse files Browse the repository at this point in the history
This implement the whole file transfer mechanism.
The code is working, but not yet optimize nor pretty.

Signed-off-by: Martichou <[email protected]>
  • Loading branch information
Martichou committed Feb 14, 2024
1 parent c1b9edc commit b1e26ce
Show file tree
Hide file tree
Showing 9 changed files with 674 additions and 112 deletions.
152 changes: 102 additions & 50 deletions Cargo.lock

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

28 changes: 14 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
name = "rquickshare"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0"
tokio = { version = "1.25", features = ["macros", "rt", "rt-multi-thread", "net", "sync", "time", "io-util"] }
log = "0.4"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
base64 = "0.21"
rand = "0.8"
directories = "5.0"
hex = "0.4"
hkdf = "0.12"
hmac = "0.12"
libaes = "0.7"
local-ip-address = "0.5"
log = "0.4"
mdns-sd = "0.10"
sys_metrics = "0.2"
once_cell = "1.0"
tokio-util = { version = "0.7", features = ["rt"] }
prost = "0.12"
open = "5.0"
p256 = { version = "0.13", features = ["ecdh"] }
prost = "0.12"
rand = "0.8"
sha2 = "0.10"
hkdf = "0.12"
local-ip-address = "0.5"
hex = "0.4"
aes = "0.8"
cbc = "0.1"
hmac = "0.12"
sys_metrics = "0.2"
tokio = { version = "1.25", features = ["macros", "rt", "rt-multi-thread", "net", "sync", "time", "io-util"] }
tokio-util = { version = "0.7", features = ["rt"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[build-dependencies]
prost-build = "0.12"
12 changes: 12 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#[derive(Debug)]
pub enum AppError {
NotAnError,
}

impl std::fmt::Display for AppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::NotAnError => write!(f, "not an error"),
}
}
}
Loading

0 comments on commit b1e26ce

Please sign in to comment.