protected void Page_Load(object sender, EventArgs e) { HttpCookie cookie = this.Request.Cookies["name"]; if (cookie != null) { string secret = Secure.DecryptFromBase64(cookie.Value, "password", this.Request.UserHostAddress); } }