Popularity
1.1
Stable
Activity
0.0
Stable
10
1
3

Programming language: Go
License: MIT License
Latest version: v1.0.1

signedvalue alternatives and similar packages

Based on the "Authentication and OAuth" category.
Alternatively, view signedvalue alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of signedvalue or a related project?

Add another 'Authentication and OAuth' Package

README

signedvalue

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.

Install

go get github.com/sashka/signedvalue

Usage

import "github.com/sashka/signedvalue"

// 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.
}

Contributing

Pull requests are kindly welcome.