We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b26e45 commit 150ce0dCopy full SHA for 150ce0d
src/mysql_auth.erl
@@ -175,8 +175,8 @@ bxor_binary(B1, B2) ->
175
password_new([], _Salt) ->
176
<<>>;
177
password_new(Password, Salt) ->
178
- Stage1 = crypto:hash(Password, sha),
179
- Stage2 = crypto:hash(Stage1, sha),
+ Stage1 = crypto:hash(sha, Password),
+ Stage2 = crypto:hash(sha, Stage1),
180
Res = crypto:hash_final(
181
crypto:hash_update(
182
crypto:hash_update(crypto:hash_init(sha), Salt),
0 commit comments