[feature/crypto] Make sure duplicates are properly treated in combined hash

PHPBB3-11610