[feature/crypto] Add legacy support for md5 passwords

PHPBB3-11610