-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3: Enforce key length for EncryptCookie middleware default functions (…
…#3056) * Support for key length, Add benchmarks for EncryptCookie middleware * Format tests * Add tests for panics and key check in Encryptor and Decryptor functions * Add tests for base64 decoding errors * Update docs/middleware/encryptcookie.md Co-authored-by: Jason McNeil <[email protected]> * Update middleware/encryptcookie/utils.go Co-authored-by: Jason McNeil <[email protected]> * Add suggestions from code review --------- Co-authored-by: Jason McNeil <[email protected]>
- Loading branch information
Showing
6 changed files
with
555 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.