add Hash Functions to nanlde cookie security