hexdigest => hexfinal

master
Philippe Pittoli 2023-01-25 05:53:35 +01:00
parent 841d2dc7c2
commit 3ddcd181dd
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class AuthD::Service < IPC::Server
def hash_password(password : String) : String def hash_password(password : String) : String
digest = OpenSSL::Digest.new "sha256" digest = OpenSSL::Digest.new "sha256"
digest << password digest << password
digest.hexdigest digest.hexfinal
end end
def new_uid def new_uid