Skip to content
Compatibility layer for tornado's signed values (and secure cookies consequently)
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
fuzz/corpus Add new items to fuzz corpus Nov 23, 2018
.travis.yml Autotest master with Travis CI Jan 28, 2019
LICENSE Put license in a separate file Feb 18, 2018
Makefile Minor rewrite of Makefile Nov 22, 2018 Put license in a separate file Feb 18, 2018
signedvalue_fuzz.go Make fuzz tests work again Feb 18, 2018
signedvalue_test.go Rename benchmark as well. Feb 19, 2018


signedvalue is an implementation of signed and timestamped strings compatible with Tornado's create_signed_value, decode_signed_value, and therefore set_secure_cookie and get_secure_cookie.


go get


import ""

// Sign your "Hello, world".
signed := signedvalue.Create("secret", "name", "Hello, world")

// Decode a signed string.
// Treat signed string as invalid if it's more than 1 minute old.
decoded, err := signedvalue.Decode("secret", "name", signed, 60)
if err != nil {
    // Signed string is no longer valid.


Pull requests are kindly welcome.

You can’t perform that action at this time.