require digest and base64 to generate the cookies