throws exception when salt is too short