-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xsrftoken: create no padding base64 string by RawURLEncoding #217
Conversation
Getting the no padding base64 string with base64.RawURLEncoding to reduce the costs.
This PR (HEAD: a8263b5) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/net/+/599895. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Ian Lance Taylor: Patch Set 1: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Go LUCI: Patch Set 1: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-07-21T02:18:20Z","revision":"76ce94f36b85cf50e32fcb7b85e7165df3dfa557"} Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Ian Lance Taylor: Patch Set 1: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Go LUCI: Patch Set 1: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Go LUCI: Patch Set 1: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Chen Su: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Ian Lance Taylor: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Chen Su: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
The XSRF token generation function creates the padded base64 string by base64.URLEncoding, then removes the padding. It is equivalent to the base64.RawURLEncoding but with more costs. Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417 GitHub-Last-Rev: a8263b5 GitHub-Pull-Request: #217 Reviewed-on: https://go-review.googlesource.com/c/net/+/599895 Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Commit-Queue: Damien Neil <dneil@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com>
Message from Damien Neil: Patch Set 3: Code-Review+2 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-07-22T18:14:36Z","revision":"c55d9a1c8ec3ff47f87098152ede8b9403965969"} Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Ian Lance Taylor: Patch Set 3: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
Message from Ian Lance Taylor: Patch Set 3: Auto-Submit+1 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/599895. |
This PR is being closed because golang.org/cl/599895 has been merged. |
The XSRF token generation function creates the padded base64 string by
base64.URLEncoding, then removes the padding. It is equivalent to the
base64.RawURLEncoding but with more costs.