You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Hash the password here with e.g. argon2, blake2b or any other secure algorithm
117
+
// Here is an example implementation using the `rust-argon2` crate for hashing the password
118
+
useargon2::{hash_raw, Config, Variant, Version};
119
+
120
+
letconfig=Config {
121
+
lanes:4,
122
+
mem_cost:10_000,
123
+
time_cost:10,
124
+
variant:Variant::Argon2id,
125
+
version:Version::Version13,
126
+
..Default::default()
127
+
};
128
+
letsalt="your-salt".as_bytes();
129
+
letkey=hash_raw(password.as_ref(), salt, &config).expect("failed to hash password");
130
+
131
+
key.to_vec()
132
+
})
133
+
.build(),
134
+
)
135
+
.run(tauri::generate_context!())
136
+
.expect("error while running tauri application");
132
137
}
133
138
```
134
139
@@ -200,23 +205,15 @@ By default all potentially dangerous plugin commands and scopes are blocked and
200
205
201
206
See the [Capabilities Overview](/security/capabilities/) for more information and the [step by step guide](/learn/security/using-plugin-permissions/) to use plugin permissions.
0 commit comments