settings/security: generate paper key

This commit is contained in:
Philippe Loctaux 2023-04-10 15:17:08 +02:00
parent c1daa34f2c
commit a67c7559b9
12 changed files with 183 additions and 4 deletions

10
Cargo.lock generated
View file

@ -935,6 +935,15 @@ dependencies = [
"slab",
]
[[package]]
name = "gen_passphrase"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f20bae32fbc2a12fe5c574fc0a9834ba7f70abe51c8efe315dedc7a07fd58287"
dependencies = [
"nanorand",
]
[[package]]
name = "generator"
version = "0.7.3"
@ -1061,6 +1070,7 @@ name = "hash"
version = "0.0.0"
dependencies = [
"argon2",
"gen_passphrase",
"nanoid",
"nanoid-dictionary",
"rand_core",