hash input method