Cookies encryption : the IV is now generated with sha1 instead of md5

as sha1 generate a longer key chain, this allow a best security if
mcrypt need an iv bigger than 16 characters