Replace crypto calls that will be removed in a future release

This commit is contained in:
Badlop 2015-04-04 14:09:58 +02:00
parent cf40daf663
commit 7d3b2cad26
1 changed files with 2 additions and 2 deletions

View File

@ -603,10 +603,10 @@ check_password_hash(User, Host, PasswordHash, HashMethod) ->
end.
get_md5(AccountPass) ->
lists:flatten([io_lib:format("~.16B", [X])
|| X <- binary_to_list(crypto:md5(AccountPass))]).
|| X <- binary_to_list(erlang:md5(AccountPass))]).
get_sha(AccountPass) ->
lists:flatten([io_lib:format("~.16B", [X])
|| X <- binary_to_list(crypto:sha(AccountPass))]).
|| X <- binary_to_list(p1_sha:sha1(AccountPass))]).
num_active_users(Host, Days) ->
list_last_activity(Host, true, Days).