Skip to content
Commits on Apr 22, 2016
  1. @elithrar
  2. @elithrar

    [ci] .travis.yml go vet fix.

    elithrar committed Apr 22, 2016
  3. @elithrar

    [feature] NopEncoder: accept/return []byte.

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

    [feature] NopEncoder: accept/return []byte.

    elithrar committed Mar 28, 2016
    - [docs] Update doc.go for golint.
Commits on Feb 26, 2016
  1. @elithrar

    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. @elithrar
Commits on Aug 20, 2015
  1. @elithrar

    Merge pull request #33 from elithrar/subtle-len-backport

    elithrar committed Aug 20, 2015
    Reverts d8773d3 - backports len check for subtle.ConstantTimeCompare.
  2. @elithrar
  3. @kisielk

    Update .travis.yml

    kisielk committed Aug 19, 2015
Commits on Aug 18, 2015
  1. @kisielk

    Added fuzz testing facilities.

    kisielk committed Aug 18, 2015
Commits on Aug 8, 2015
  1. @kisielk

    Merge pull request #30 from elithrar/gen-key-doc

    kisielk committed Aug 8, 2015
    Improved documentation for GenerateRandomKey
  2. @elithrar
  3. @elithrar
Commits on Aug 6, 2015
  1. @kisielk

    add test for nil hash key

    kisielk committed Aug 6, 2015
  2. @kisielk

    Merge pull request #29 from elithrar/codec-maxage-fix

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

    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. @elithrar

    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. @kisielk

    Merge pull request #28 from keunwoo/keunwoo-errors-alt-20150720

    kisielk committed Jul 27, 2015
    Make errors more distinguishable
  2. @keunwoo

    Move error type assertions to test file.

    keunwoo committed Jul 27, 2015
    Per elithrar comment on PR 28:
    #28 (comment)
  3. @keunwoo

    Rename errorImpl -> cookieError

    keunwoo committed Jul 27, 2015
    Per elithrar comment on PR 28:
    #28 (comment)
Commits on Jul 20, 2015
  1. @keunwoo

    Make errors more distinguishable

    keunwoo 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. @s7v7nislands

    fix readme

    s7v7nislands committed Jul 17, 2015
Commits on Jul 16, 2015
  1. @kisielk

    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 committed Jul 16, 2015
Commits on Jul 5, 2015
  1. @kisielk

    Merge pull request #23 from elithrar/readme-updates

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

    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. @kisielk

    Merge pull request #22 from cyx/use-reflect-deepequal

    kisielk committed Jun 5, 2015
    Use reflect.DeepEqual instead
  2. @kisielk

    Merge pull request #21 from elithrar/json-encoder

    kisielk committed Jun 5, 2015
    Added support for encoding/json
Commits on May 25, 2015
  1. @cyx

    Use reflect.DeepEqual instead

    cyx committed May 25, 2015
    Unless there's something I'm missing, probably better to
    delegate this check to the reflect package.
Commits on May 20, 2015
  1. @elithrar
  2. @elithrar

    Added a JSON encoder/decoder to securecookie.

    elithrar committed May 16, 2015
    A new "Serializer" interface with serialize/deserialize methods allows
    custom encoders to be specified. encoding/gob remains the default for
    compatibility/ease-of-use reasons, but the (often faster) encoding/json
    is now an option.
    
    Fixed typo - TestEncription => TestEncryption
Commits on May 16, 2015
  1. @elithrar
  2. @elithrar

    Added a JSON encoder/decoder to securecookie.

    elithrar committed May 16, 2015
    A new "Encoder" interface with serialize/deserialize methods allows
    custom encoders to be specified. encoding/gob remains the default for
    compatibility/ease-of-use reasons, but the (often faster) encoding/json
    is now an option.
Commits on Mar 27, 2015
  1. @kisielk

    Merge pull request #19 from dchest/testinvalid

    kisielk committed Mar 27, 2015
    Add test for decoding some invalid cookies.
  2. @dchest
Something went wrong with that request. Please try again.