Encrypt user id and cookie