Merge pull request #27 from s7v7nislands/fix_readme
Update block key lengths in README
This commit is contained in:
commit
a2b6e9f57e
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ To use it, first create a new SecureCookie instance:
|
|||
```go
|
||||
// Hash keys should be at least 32 bytes long
|
||||
var hashKey = []byte("very-secret")
|
||||
// Block keys should be 32 bytes (AES-128) or 64 bytes (AES-256) long.
|
||||
// Block keys should be 16 bytes (AES-128) or 32 bytes (AES-256) long.
|
||||
// Shorter keys may weaken the encryption used.
|
||||
var blockKey = []byte("a-lot-secret")
|
||||
var s = securecookie.New(hashKey, blockKey)
|
||||
|
|
Loading…
Reference in a new issue