A
A
Andrey Klyuev2019-04-03 18:00:36
PHP
Andrey Klyuev, 2019-04-03 18:00:36

It is necessary to rewrite a piece of erlang-code php. How?

Actually, this line:

PasswordHash = util_hex:from_binary(crypto:hash(sha512, <<Salt/binary, Password/binary>>))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-04-03
@begemot_sun

Let's write in Russian:
$a = $salt + $password;
$hash = hash sha512 from $a
and what is util_hex:from_binary I xs
suppose that the translation from binary to hexadecimal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question