Permalink
Switch branches/tags
Nothing to show
Commits on Jun 8, 2018
Commits on May 18, 2018
  1. [bugfix] check for an empty hashKey (#52)

    Wessie authored and elithrar committed May 18, 2018
    this scenario might occur when converting from an empty string to
    byte slice, such as when reading from a configuration file.
Commits on Feb 24, 2017
Commits on Oct 3, 2016
  1. [bugfix] Fix NopDecoder

    captncraig authored and elithrar committed Oct 3, 2016
    * Fixes #41
Commits on Aug 16, 2016
  1. Add fuzz testing corpus.

    kisielk committed Aug 16, 2016
  2. travis.yml: add go1.7

    kisielk committed Aug 16, 2016
Commits on May 25, 2016
  1. Merge pull request #39 from 0x434D53/master

    kisielk committed May 25, 2016
    Update Readme: Added HttpOnly, Secure flags for setting the cookie
Commits on Apr 22, 2016
  1. [ci] .travis.yml go vet fix.

    elithrar committed Apr 22, 2016
  2. [feature] NopEncoder: accept/return []byte.

    elithrar committed Apr 22, 2016
    [feature] NopEncoder: accept/return []byte.
Commits on Mar 31, 2016
  1. [feature] NopEncoder: accept/return []byte.

    elithrar committed Mar 29, 2016
    - [docs] Update doc.go for golint.
Commits on Feb 26, 2016
  1. Merge pull request #37 from gorilla/ci/travis-go-1.6

    elithrar committed Feb 26, 2016
    [ci] Update .travis.yml to build Go 1.6
  2. Update .travis.yml to build Go 1.6

    elithrar committed Feb 26, 2016
Commits on Aug 20, 2015
  1. Merge pull request #33 from elithrar/subtle-len-backport

    elithrar committed Aug 20, 2015
    Reverts d8773d3 - backports len check for subtle.ConstantTimeCompare.
  2. Update .travis.yml

    kisielk committed Aug 20, 2015
Commits on Aug 18, 2015
Commits on Aug 8, 2015
  1. Merge pull request #30 from elithrar/gen-key-doc

    kisielk committed Aug 8, 2015
    Improved documentation for GenerateRandomKey
Commits on Aug 6, 2015
  1. add test for nil hash key

    kisielk committed Aug 6, 2015
  2. Merge pull request #29 from elithrar/codec-maxage-fix

    kisielk committed Aug 6, 2015
    Improved documentation for CodecsFromPairs.
  3. Improved documentation for CodecsFromPairs.

    elithrar committed Aug 6, 2015
    - Partially addresses gorilla/sessions#48
    - Downstream store packages will need to perform the type assertion in their code
    - Elected to document this and fix stores rather than add a function to the
      public API.
  4. Merge pull request #27 from s7v7nislands/fix_readme

    elithrar committed Aug 6, 2015
    Update block key lengths in README
Commits on Jul 27, 2015
  1. Merge pull request #28 from keunwoo/keunwoo-errors-alt-20150720

    kisielk committed Jul 27, 2015
    Make errors more distinguishable
  2. Move error type assertions to test file.

    Keunwoo Lee
    Keunwoo Lee committed Jul 27, 2015
    Per elithrar comment on PR 28:
    #28 (comment)
  3. Rename errorImpl -> cookieError

    Keunwoo Lee
    Keunwoo Lee committed Jul 27, 2015
    Per elithrar comment on PR 28:
    #28 (comment)
Commits on Jul 20, 2015
  1. Make errors more distinguishable

    Keunwoo Lee
    Keunwoo Lee committed Jul 9, 2015
    Prior to this commit, this library raised errors either mostly using
    errors.New() or directly passing through error values from underlying
    libraries.  This made it difficult for clients to respond correctly to
    the errors that were returned.
    
    This becomes particularly problematic when securecookie is used together
    with gorilla/sessions.  From an operations standpoint, you often want to
    log different errors when the client simply provides an invalid auth
    cookie, versus an I/O error fetching data from the session store.  The
    former probably indicates an expired timestamp or similar client error;
    the latter indicates a possible failure in a backend database.
    
    This commit introduces a public Error interface, which is now returned
    consistently on all errors, and can be used to distinguish between
    implementation errors (IsUsage() and IsInternal()) and failed validation
    of user input (IsDecode()).
    
    See also discussion on pull requests #9 and #24:
    #9
    #24
    
    Some interface comments on other API functions have been clarified and
    updated to harmonize with the new error interfaces.
Commits on Jul 17, 2015
  1. fix readme

    s7v7nislands committed Jul 17, 2015
Commits on Jul 16, 2015
  1. Merge pull request #26 from Annonomus-Penguin/patch-1

    kisielk committed Jul 16, 2015
    Fixed broken link in README
  2. Fixed broken link in README

    Annonomus-Penguin Annonomus-Penguin
    Annonomus-Penguin authored and Annonomus-Penguin committed Jul 16, 2015
Commits on Jul 5, 2015
  1. Merge pull request #23 from elithrar/readme-updates

    kisielk committed Jul 5, 2015
    Fleshed out the README based on doc.go.
  2. Fleshed out the README based on doc.go.

    elithrar committed Jul 5, 2015
    - Added mention of the LICENSE.
    - Used GFM code blocks for the examples.
    - Added mention of the JSON encoder.
Commits on Jun 5, 2015
  1. Merge pull request #22 from cyx/use-reflect-deepequal

    kisielk committed Jun 5, 2015
    Use reflect.DeepEqual instead