Skip to content

Commit

Permalink
docs: changed deprecated goo.gl links to their unshortened variant (#77)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vvvvv and coreydaley authored Jul 29, 2023
1 parent ab6b808 commit 4ce5252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securecookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func verifyMac(h hash.Hash, value []byte, mac []byte) error {

// encrypt encrypts a value using the given block in counter mode.
//
// A random initialization vector (http://goo.gl/zF67k) with the length of the
// A random initialization vector ( https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Initialization_vector_(IV) ) with the length of the
// block size is prepended to the resulting ciphertext.
func encrypt(block cipher.Block, value []byte) ([]byte, error) {
iv := GenerateRandomKey(block.BlockSize())
Expand All @@ -408,7 +408,7 @@ func encrypt(block cipher.Block, value []byte) ([]byte, error) {
// decrypt decrypts a value using the given block in counter mode.
//
// The value to be decrypted must be prepended by a initialization vector
// (http://goo.gl/zF67k) with the length of the block size.
// ( https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Initialization_vector_(IV) ) with the length of the block size.
func decrypt(block cipher.Block, value []byte) ([]byte, error) {
size := block.BlockSize()
if len(value) > size {
Expand Down

0 comments on commit 4ce5252

Please sign in to comment.