hexdigest => hexfinal

This commit is contained in:
Philippe Pittoli 2023-01-25 05:53:35 +01:00
parent 841d2dc7c2
commit 3ddcd181dd

View File

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