Commit graph

99 commits

Author SHA1 Message Date
Hank Shen
53756c3ef9 update 2023-12-06 12:34:46 +08:00
Hank Shen
c33b59bcab update 2023-12-06 11:54:31 +08:00
Hank Shen
75a1bf1576 update 2023-12-06 11:51:36 +08:00
Hank Shen
3faf6fc167 Revert "Update securecookie.go"
This reverts commit f14b1ebae2.
2023-12-06 11:05:58 +08:00
Hank Shen
f14b1ebae2
Update securecookie.go 2023-12-06 01:38:42 +08:00
Hank Shen
8ec3d1ab52 update 2023-10-15 11:47:40 +08:00
Hank Shen
1cb0c52890 update 2023-10-09 13:20:51 +08:00
Hank Shen
c3c993005c update 2023-10-09 12:54:44 +08:00
Hank Shen
70411ec97c update 2023-10-09 12:45:11 +08:00
Hank Shen
a9590b4584 Merge branch 'main' of github.com:/gorilla/securecookie 2023-10-09 12:42:42 +08:00
Corey Daley
22eae5c820
Update go version & add verification/testing tools (#81)
<!--
For Work In Progress Pull Requests, please use the Draft PR feature,
see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for
further details.

     For a timely review/response, please avoid force-pushing additional
     commits if your PR already received reviews or comments.

     Before submitting a Pull Request, please ensure that you have:
- 📖 Read the Contributing guide:
https://github.com/gorilla/.github/blob/main/CONTRIBUTING.md
- 📖 Read the Code of Conduct:
https://github.com/gorilla/.github/blob/main/CODE_OF_CONDUCT.md

     - Provide tests for your changes.
     - Use descriptive commit messages.
	 - Comment your code where appropriate.
	 - Squash your commits
     - Update any related documentation.

     - Add gorilla/pull-request-reviewers as a Reviewer
-->

## What type of PR is this? (check all applicable)

- [ ] Refactor
- [ ] Feature
- [ ] Bug Fix
- [x] Optimization
- [ ] Documentation Update

## Description

## Related Tickets & Documents

<!--
For pull requests that relate or close an issue, please include them
below. We like to follow [Github's guidance on linking issues to pull
requests](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).

For example having the text: "closes #1234" would connect the current
pull
request to issue 1234.  And when we merge the pull request, Github will
automatically close the issue.
-->

- Related Issue #
- Closes #

## Added/updated tests?

- [ ] Yes
- [ ] No, and this is why: _please replace this line with details on why
tests
      have not been included_
- [ ] I need help with writing tests

## Run verifications and test

- [ ] `make verify` is passing
- [ ] `make test` is passing
2023-07-31 15:18:18 -04:00
vvvvv
4ce52525b6
docs: changed deprecated goo.gl links to their unshortened variant (#77)
Unshortened the links in the docs because 
1. goo.gl is a deprecated service 
2. being able to see the actual link is more verbose thus more useful
inside of docs

Co-authored-by: Corey Daley <cdaley@redhat.com>
2023-07-29 15:00:07 -04:00
Corey Daley
ab6b80809e
Merge pull request #78 from gorilla/coreydaley-patch-1
Update README.md
2023-07-15 16:05:01 -04:00
Corey Daley
80d3cb33a4
Update README.md
Signed-off-by: Corey Daley <cdaley@redhat.com>
2023-07-15 10:53:03 -04:00
Matt Silverlock
9865a2b613
archive mode 2022-12-09 10:59:13 -05:00
Matt Silverlock
f37875ef1f
build: use build matrix; drop Go <= 1.10 (#74) 2020-09-12 12:29:11 -07:00
Tom
61b4ad17eb docs: Include an example for using DecodeMulti in the Readme (#69)
* Include an example for using DecodeMulti in the Readme

* Put warning in as code comment
2019-10-27 21:23:04 -07:00
Filippo Valsorda
86450627d8 doc: correct a reference to block size that was meant to be key size (#64)
The AES block size is always the same, it's the key size that selects AES-128, AES-192, or AES-256.
2019-07-06 20:38:17 -07:00
Matt Silverlock
629b6af173
Create config.yml (#63)
* Create config.yml

* Delete .travis.yml
2019-06-26 20:59:45 -07:00
Kamil Kisiel
e65cf8c5df
Merge pull request #59 from nilslice/sm/gitattrs
github: remove false-match for language detection
2018-10-10 10:46:47 -07:00
Steve Manuel
2a3375fa36 github: remove false-match for language detection 2018-10-10 11:12:12 -06:00
Kamil Kisiel
bb1ab76598
Merge pull request #58 from gorilla/elithrar/generaterandomkey-docs
[docs] Clarify usage of GenerateRandomKey
2018-09-13 13:06:11 -07:00
Matt Silverlock
11123820fb [docs] Add note RE: persistence to GenerateRandomKey 2018-09-13 11:41:34 -07:00
Matt Silverlock
1aeabd1952 [docs] Clarify usage of GenerateRandomKey 2018-09-13 10:58:55 -07:00
Matt Silverlock
3a8eb0de07
Create release_drafter.yml (#57) 2018-08-30 11:40:16 -07:00
Wilk
51f47194a5 Create go.mod to be aware of go modules (#55) 2018-08-27 05:03:01 -07:00
Matt Silverlock
78f3d318a8
Update LICENSE & AUTHORS files (#54) 2018-06-08 07:44:17 -07:00
Wesley Bitter
b009e17e9c [bugfix] check for an empty hashKey (#52)
this scenario might occur when converting from an empty string to
byte slice, such as when reading from a configuration file.
2018-05-18 08:25:24 -07:00
Wenhui Shen
69560e3755 update 2017-07-22 12:19:19 +08:00
Wenhui Shen
4eede49ef7 update 2017-07-22 11:24:17 +08:00
Wenhui Shen
deb9be6946 Decode: 支持传入临时参数 maxAge 2017-07-22 11:11:58 +08:00
Kamil Kisiel
e59506cc89 README.md: Add sourcegraph badge 2017-02-24 11:38:04 -08:00
Craig Peterson
fa5329f913 [bugfix] Fix NopDecoder
* Fixes #41
2016-10-03 06:16:01 +01:00
Kamil Kisiel
c13558c2b1 Add fuzz testing corpus. 2016-08-16 15:23:38 -07:00
Kamil Kisiel
422e448ee4 travis.yml: add go1.7 2016-08-16 11:50:19 -07:00
Kamil Kisiel
ff356348f7 Merge pull request #39 from 0x434D53/master
Update Readme: Added HttpOnly, Secure flags for setting the cookie
2016-05-25 13:33:48 -07:00
0x434D53
f5b37263f0 Update Readme: Added HttpOnly, Secure flags for setting the cookie 2016-05-25 16:56:53 +02:00
Matt Silverlock
667fe4e346 Merge branch 'master' of github.com:gorilla/securecookie 2016-04-22 06:45:19 -07:00
Matt Silverlock
4c7f85bfe5 [ci] .travis.yml go vet fix. 2016-04-22 06:44:34 -07:00
Matt Silverlock
a29e8718b6 [feature] NopEncoder: accept/return []byte.
[feature] NopEncoder: accept/return []byte.
2016-04-22 06:43:38 -07:00
Matt Silverlock
6ac16e3b5c [feature] NopEncoder: accept/return []byte.
- [docs] Update doc.go for golint.
2016-03-30 21:13:44 -07:00
Matt Silverlock
8dacca2697 Merge pull request #37 from gorilla/ci/travis-go-1.6
[ci] Update .travis.yml to build Go 1.6
2016-02-26 13:31:13 -08:00
Matt Silverlock
4d88276705 Update .travis.yml to build Go 1.6 2016-02-26 13:24:46 -08:00
Matt Silverlock
e95799a481 Merge pull request #33 from elithrar/subtle-len-backport
Reverts d8773d3 - backports len check for subtle.ConstantTimeCompare.
2015-08-20 16:29:58 +08:00
Matt Silverlock
9479394b87 Reverts d8773d3 - backports len check for subtle.ConstantTimeCompare. 2015-08-20 16:26:03 +08:00
Kamil Kisiel
2e348ac077 Update .travis.yml 2015-08-19 22:17:30 -07:00
Kamil Kisiel
45e43d5d12 Added fuzz testing facilities. 2015-08-18 13:59:32 -07:00
Kamil Kisiel
95995b243b Merge pull request #30 from elithrar/gen-key-doc
Improved documentation for GenerateRandomKey
2015-08-08 08:20:25 -07:00
Matt Silverlock
6d727f0c85 Added note re: using GenerateRandomKey() not persisting keys. 2015-08-08 19:19:02 +08:00
Matt Silverlock
7029a2efc7 Improved warning around GenerateRandomKey. 2015-08-08 19:16:04 +08:00