changed typo intput to input in hash algorithm