Documentation ¶
Overview ¶
Package store contains the main data structure for passman. Store consists of a header and a map of entries. The store is used for (de)serialization as part of the encryption/decryption process.
File format --------------------------------------------------------- Offset Length Description --------------------------------------------------------- 0 7 signature / magic number 7 1 file format version 8 1 scrypt param: log2(N) 9 4 scrypt param: r 13 4 scrypt param: n 17 32 salt 49 32 HMAC-SHA256(0 .. 32) --------------------------------------------------------- 81 n encrypted entry data 81+n 32 HMAC-SHA256(0 .. 81 + (n - 1))
Index ¶
Constants ¶
View Source
const (
Version = 0x0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Header ¶
type Header struct { Signature [7]byte `json:"-"` Version byte `json:"version"` Params ScryptParams `json:"params"` Salt [32]byte `json:"-"` }
type ScryptParams ¶
Click to show internal directories.
Click to hide internal directories.