Skip to content

Commit

Permalink
Update user_model.ml
Browse files Browse the repository at this point in the history
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
  • Loading branch information
PizieDust and hannesm authored Jul 3, 2024
1 parent 2782599 commit 44b440d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_model.ml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let user_to_json u : Yojson.Basic.t =
| None -> `Null)
]

let encrypt_password password uuid =
let hash_password password uuid =
let hash = Mirage_crypto.Hash.SHA256.digest
(Cstruct.of_string (uuid ^ "-" ^ password)) in
Base64.encode_string (Cstruct.to_string hash)
Expand Down

0 comments on commit 44b440d

Please sign in to comment.