From 4ce52525b6a4243a02356b62abf6b2ef9038ff52 Mon Sep 17 00:00:00 2001 From: vvvvv <65471094+vvvvv@users.noreply.github.com> Date: Sat, 29 Jul 2023 21:00:07 +0200 Subject: 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 --- securecookie.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/securecookie.go b/securecookie.go index b718ce9..0fbc064 100644 --- a/securecookie.go +++ b/securecookie.go @@ -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()) @@ -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 { -- cgit v1.2.3