Documentation ¶
Overview ¶
Authentication utilities for GoPics.
Copyright (c) 2015, Luca Chiricozzi. All rights reserved. Released under the MIT License. http://opensource.org/licenses/MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Keyring ¶
type Keyring struct {
*securecookie.SecureCookie
}
A Keyring is used to encrypt and decrypt auth cookies.
func NewKeyring ¶
NewKeyring creates a new Keyring with the given hashKey and blockKey. The hashKey is required, it has a length of 32 or 64 bytes. The blockKey is optional, it has a length of 16, 24 or 32 bytes.
Click to show internal directories.
Click to hide internal directories.