diff options
Diffstat (limited to '')
| -rw-r--r-- | src/client/repl.rs (renamed from src/bin/client/repl.rs) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/client/repl.rs b/src/client/repl.rs index 5559cfd..5bcb2a3 100644 --- a/src/bin/client/repl.rs +++ b/src/client/repl.rs | |||
| @@ -9,7 +9,7 @@ use crate::database; | |||
| 9 | 9 | ||
| 10 | const SALT: [u8; 16] = *b"fixedsalt1234567"; | 10 | const SALT: [u8; 16] = *b"fixedsalt1234567"; |
| 11 | 11 | ||
| 12 | fn hash_password(password: &str) -> String { | 12 | pub fn hash_password(password: &str) -> String { |
| 13 | let result = hash_with_salt(password, 10, SALT).unwrap(); | 13 | let result = hash_with_salt(password, 10, SALT).unwrap(); |
| 14 | result.to_string() | 14 | result.to_string() |
| 15 | } | 15 | } |
