Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge pull request #27 from s7v7nislands/fix_readme | Matt Silverlock | 2015-08-06 | 1 | -1/+1 | |
|\ | | | | | Update block key lengths in README | |||||
| * | fix readme | s7v7nislands | 2015-07-17 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #28 from keunwoo/keunwoo-errors-alt-20150720 | Kamil Kisiel | 2015-07-28 | 2 | -31/+184 | |
|\ \ | |/ |/| | Make errors more distinguishable | |||||
| * | Move error type assertions to test file. | Keunwoo Lee | 2015-07-27 | 2 | -6/+4 | |
| | | | | | | | | | | Per elithrar comment on PR 28: https://github.com/gorilla/securecookie/pull/28#discussion_r35059831 | |||||
| * | Rename errorImpl -> cookieError | Keunwoo Lee | 2015-07-27 | 1 | -27/+27 | |
| | | | | | | | | | | Per elithrar comment on PR 28: https://github.com/gorilla/securecookie/pull/28#discussion_r35059597 | |||||
| * | Make errors more distinguishable | Keunwoo Lee | 2015-07-21 | 2 | -31/+186 | |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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: https://github.com/gorilla/securecookie/pull/9 https://github.com/gorilla/securecookie/pull/24 Some interface comments on other API functions have been clarified and updated to harmonize with the new error interfaces. | |||||
* | Merge pull request #26 from Annonomus-Penguin/patch-1 | Kamil Kisiel | 2015-07-17 | 1 | -1/+1 | |
|\ | | | | | Fixed broken link in README | |||||
| * | Fixed broken link in README | Annonomus-Penguin | 2015-07-17 | 1 | -1/+1 | |
|/ | ||||||
* | Merge pull request #23 from elithrar/readme-updates | Kamil Kisiel | 2015-07-05 | 1 | -1/+74 | |
|\ | | | | | Fleshed out the README based on doc.go. | |||||
| * | Fleshed out the README based on doc.go. | Matt Silverlock | 2015-07-05 | 1 | -1/+74 | |
|/ | | | | | | - Added mention of the LICENSE. - Used GFM code blocks for the examples. - Added mention of the JSON encoder. | |||||
* | Merge pull request #22 from cyx/use-reflect-deepequal | Kamil Kisiel | 2015-06-06 | 1 | -14/+2 | |
|\ | | | | | Use reflect.DeepEqual instead | |||||
| * | Use reflect.DeepEqual instead | Cyril David | 2015-05-25 | 1 | -14/+2 | |
| | | | | | | | | | | Unless there's something I'm missing, probably better to delegate this check to the reflect package. | |||||
* | | Merge pull request #21 from elithrar/json-encoder | Kamil Kisiel | 2015-06-06 | 2 | -10/+82 | |
|\ \ | |/ |/| | Added support for encoding/json | |||||
| * | Merge branch 'json-encoder' of github.com:elithrar/securecookie into ↵ | Matt Silverlock | 2015-05-20 | 1 | -1/+1 | |
| |\ | | | | | | | | | | json-encoder | |||||
| | * | Fixed typo - TestEncription => TestEncryption | Matt Silverlock | 2015-05-16 | 1 | -1/+1 | |
| | | | ||||||
| | * | Added a JSON encoder/decoder to securecookie. | Matt Silverlock | 2015-05-16 | 2 | -7/+79 | |
| |/ |/| | | | | | | | | | | | 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. | |||||
* | | Merge pull request #19 from dchest/testinvalid | Kamil Kisiel | 2015-03-27 | 1 | -0/+22 | |
|\ \ | | | | | | | Add test for decoding some invalid cookies. | |||||
| | * | Added a JSON encoder/decoder to securecookie. | Matt Silverlock | 2015-05-20 | 2 | -10/+82 | |
| |/ | | | | | | | | | | | | | | | | | 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 | |||||
| * | Add test for decoding some invalid cookies. | Dmitry Chestnykh | 2015-03-27 | 1 | -0/+22 | |
|/ | ||||||
* | Revert "Improve Decode against timing attacks" | Kamil Kisiel | 2015-03-27 | 1 | -27/+16 | |
| | | | | This reverts commit 1be1b717b743c89f2393561985403b51bc192255. | |||||
* | Revert "Commenting retErr and setErr in Decode" | Kamil Kisiel | 2015-03-27 | 1 | -5/+0 | |
| | | | | This reverts commit c7a729999d0c3e51964bd30c05547fac82f6527d. | |||||
* | Revert "A few more comments on decoding." | Kamil Kisiel | 2015-03-27 | 1 | -3/+0 | |
| | | | | This reverts commit a54a6f264e283c7afd37f9d7a772965e7a72408c. | |||||
* | A few more comments on decoding. | Kamil Kisiel | 2015-03-18 | 1 | -0/+3 | |
| | ||||||
* | Merge pull request #16 from elithrar/patch-1 | Kamil Kisiel | 2015-03-18 | 1 | -1/+1 | |
|\ | | | | | Removed redundant calls to len() | |||||
| * | Removed redundant calls to len() | Matt Silverlock | 2015-03-18 | 1 | -1/+1 | |
| | | | | | | subtle.ConstantTimeCompare already undertakes a length check internally. | |||||
* | | Merge pull request #15 from abduelhamit/master | Kamil Kisiel | 2015-03-18 | 2 | -22/+48 | |
|\ \ | |/ |/| | Improve Decode against timing attacks | |||||
| * | Commenting retErr and setErr in Decode | Abdülhamit Yilmaz | 2015-03-18 | 1 | -0/+5 | |
| | | ||||||
| * | Improve Decode against timing attacks | Abdülhamit Yilmaz | 2015-03-17 | 1 | -16/+27 | |
| | | ||||||
| * | Add TestMissingKey | Abdülhamit Yilmaz | 2015-03-17 | 1 | -0/+10 | |
| | | ||||||
| * | Omit unnecessary `else`s | Abdülhamit Yilmaz | 2015-03-17 | 1 | -6/+6 | |
|/ | | | | See http://golang.org/doc/effective_go.html#else | |||||
* | Fix broken error message on invalid MAC. | Kamil Kisiel | 2015-02-03 | 1 | -1/+1 | |
| | | | | Fixes #13. | |||||
* | Merge pull request #11 from dominikh/master | Kamil Kisiel | 2014-11-20 | 1 | -3/+3 | |
|\ | | | | | say that we create a key of a certain length, not strength | |||||
| * | say that we create a key of a certain length, not strength | Dominik Honnef | 2014-11-20 | 1 | -3/+3 | |
|/ | ||||||
* | Merge pull request #7 from hjr265/master | Kamil Kisiel | 2014-04-09 | 1 | -1/+3 | |
|\ | | | | | Expose ErrMacInvalid | |||||
| * | Merge branch 'fix-6' | Mahmud Ridwan | 2014-04-09 | 1 | -1/+3 | |
|/| | ||||||
| * | Expose ErrMacInvalid; fixes gorilla/securecookie#6 | Mahmud Ridwan | 2014-04-09 | 1 | -1/+3 | |
|/ | ||||||
* | Add go 1.2 to travis.yml | Kamil Kisiel | 2013-12-05 | 1 | -0/+1 | |
| | ||||||
* | Add Travis badge | Kamil Kisiel | 2013-12-01 | 1 | -1/+2 | |
| | ||||||
* | Add travis.yml | Kamil Kisiel | 2013-12-01 | 2 | -5/+14 | |
| | ||||||
* | Better errors for {En,De}codeMulti. | Kamil Kisiel | 2013-10-17 | 2 | -4/+25 | |
| | ||||||
* | Merge pull request #2 from jtdowney/master | Kamil Kisiel | 2013-01-02 | 1 | -2/+2 | |
|\ | | | | | Fix description for Encode | |||||
| * | Fix description for Encode | John Downey | 2013-01-01 | 1 | -2/+2 | |
|/ | ||||||
* | Use the same MultiError version from the App Engine SDK. | moraes | 2012-10-13 | 1 | -6/+9 | |
| | ||||||
* | Better errors for EncodeMulti and DecodeMulti. Closes #1. | moraes | 2012-10-13 | 2 | -2/+42 | |
| | ||||||
* | Initial files. | moraes | 2012-10-03 | 4 | -0/+626 | |
| | ||||||
* | Initial commit | rodrigo moraes | 2012-10-03 | 1 | -0/+2 | |