Documentation ¶
Overview ¶
Package dscursor contains a set of utilities that help performing common tasks associated with datastore.Cursor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault is a utility type that can convert datastore.Cursor to/from an encrypted, URL safe page token. It uses AEAD to ensure that 1. potential sensitive information contained in the cursor is not leaked. 2. user can not use a page token that is not generated by the server.
func NewVault ¶
NewVault creates a new page token vault with the specified additional data.
Notes: * server/secrets module must be initialized with PrimaryTinkAEADKey during server start up. * The additionalData is used for encryption. Vaults used in different places should have different additional data.