1%% This Source Code Form is subject to the terms of the Mozilla Public 2%% License, v. 2.0. If a copy of the MPL was not distributed with this 3%% file, You can obtain one at https://mozilla.org/MPL/2.0/. 4%% 5%% Copyright (c) 2007-2021 VMware, Inc. or its affiliates. All rights reserved. 6%% 7 8%% Legacy hashing implementation, only used as a last resort when 9%% #internal_user.hashing_algorithm is md5 or undefined (the case in 10%% pre-3.6.0 user records). 11 12-module(rabbit_password_hashing_md5). 13 14-behaviour(rabbit_password_hashing). 15 16-export([hash/1]). 17 18hash(Binary) -> 19 erlang:md5(Binary). 20