diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 08d9041..11aa2d4 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -35,7 +35,7 @@ dependencies = [ "base64ct", "blake2", "cpufeatures", - "password-hash", + "password-hash 0.5.0", ] [[package]] @@ -197,6 +197,12 @@ dependencies = [ "windows-link", ] +[[package]] +name = "cmov" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f88a43d011fc4a6876cb7344703e297c71dda42494fee094d5f7c76bf13f746" + [[package]] name = "const-oid" version = "0.9.6" @@ -260,6 +266,15 @@ dependencies = [ "typenum", ] +[[package]] +name = "ctutils" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e" +dependencies = [ + "cmov", +] + [[package]] name = "curve25519-dalek" version = "4.1.3" @@ -564,7 +579,7 @@ dependencies = [ "hex", "jsonwebtoken", "lettre", - "password-hash", + "password-hash 0.6.1", "rand 0.9.2", "reqwest", "rusqlite", @@ -1458,6 +1473,16 @@ dependencies = [ "subtle", ] +[[package]] +name = "password-hash" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aab41826031698d6ffcd9cff78ef56ef998e39dc7e5067cdfebe373842d4723b" +dependencies = [ + "getrandom 0.4.2", + "phc", +] + [[package]] name = "pem" version = "3.0.6" @@ -1483,6 +1508,17 @@ version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" +[[package]] +name = "phc" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44dc769b75f93afdddd8c7fa12d685292ddeff1e66f7f0f3a234cf1818afe892" +dependencies = [ + "base64ct", + "ctutils", + "getrandom 0.4.2", +] + [[package]] name = "pin-project-lite" version = "0.2.17" diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 30f1d5a..5f0850b 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -14,7 +14,7 @@ serde_json = "1" rusqlite = { version = "0.39", features = ["bundled"] } jsonwebtoken = { version = "10", features = ["rust_crypto"] } argon2 = { version = "0.5", features = ["std"] } -password-hash = { version = "0.5", features = ["getrandom"] } +password-hash = { version = "0.6", features = ["getrandom"] } lettre = { version = "0.11", features = ["tokio1-native-tls", "builder"] } uuid = { version = "1", features = ["v4"] } chrono = { version = "0.4", features = ["serde"] }