% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/signature.R
\name{unsign}
\alias{unsign}
\title{Unsign a Cookie Value}
\usage{
unsign(input, secret)
}
\arguments{
\item{input}{A string. A signed cookie value produced by \code{\link[=sign]{sign()}}.}

\item{secret}{The secret key to verify against.}
}
\value{
The original unsigned value if verification succeeds, \code{FALSE}
otherwise.
}
\description{
Verifies the signature of a signed cookie value and returns the original
value if valid, or \code{FALSE} if the signature does not match.
}
\examples{
input <- sign("hello", "tobiiscool")
unsign(input, "tobiiscool")
unsign(input, "luna")

}
