Versions in this module Expand all Collapse all v0 v0.0.1 Mar 24, 2020 Changes in this version + var ErrInvalidDatabase = errors.New("invalid database") + type Header struct + Description string + LastSaveByUser string + LastSaveByWhat string + LastSaveOnHost string + LastSaveTimestamp time.Time + Name string + UUID [16]byte + UnimplementedFields []RawField + Version uint16 + type PWSafeV3 struct + func Decode(b []byte, pass []byte, progressInterval time.Duration, ...) (*PWSafeV3, error) + func ReadFile(path string, pass []byte) (*PWSafeV3, error) + func ReadFileWithPeriodicProgress(path string, pass []byte, progressInterval time.Duration, ...) (*PWSafeV3, error) + func (db *PWSafeV3) Encode(pass []byte, iter uint32) ([]byte, error) + func (db *PWSafeV3) Header() Header + func (db *PWSafeV3) Iterations() uint32 + func (db *PWSafeV3) ListRecords() []Record + func (db *PWSafeV3) SetDescription(s string) error + func (db *PWSafeV3) SetLastSaveBy(what, user, host string) error + func (db *PWSafeV3) SetLastSaveTimestamp(t time.Time) + func (db *PWSafeV3) SetName(s string) error + func (db *PWSafeV3) SetUUID(uuid [16]byte) + func (db *PWSafeV3) SetUnimplementedHeaderFields(fields []RawField) error + type RawField struct + Data []byte + Kind uint8 + type Record struct + CreationTime time.Time + Email string + Group string + LastAccessTime time.Time + LastModTime time.Time + Notes string + Pass string + PassModTime time.Time + Title string + URL string + UUID [16]byte + UnimplementedFields []RawField + Username string