support hash mode4