Documentation ¶
Index ¶
Constants ¶
View Source
const ( // header types DatabaseDescription = 0x0a DatabaseFilters = 0x0b DatabaseName = 0x09 EmptyGroups = 0x11 EndOfEntry = 0xff LastMasterPasswordChange = 0x13 LastSavedByUser = 0x07 LastSavedOnHost = 0x08 NamedPasswordPolicies = 0x10 NondefaultPreferences = 0x02 RecentlyUsedEntries = 0x0f TimestampOfLastSave = 0x04 TreeDisplayStatus = 0x03 UUID = 0x01 Version = 0x00 WhatPerformedLastSave = 0x06 WhoPerformedLastSave = 0x05 Yubico = 0x12 // record types Autotype = 0x0e CreationTime = 0x07 CreditCardExpiration = 0x1d CreditCardNumber = 0x1c CreditCardPIN = 0x1f CreditCardVerifValue = 0x1e DoubleClickAction = 0x13 EMailAddress = 0x14 EntryKeyboardShortcut = 0x19 Group = 0x02 LastAccessTime = 0x09 LastModificationTime = 0x0c Notes = 0x05 OwnSymbolsForPassword = 0x16 Password = 0x06 PasswordExpiryInterval = 0x11 PasswordExpiryTime = 0x0a PasswordHistory = 0x0f PasswordModificationTime = 0x08 PasswordPolicy = 0x10 PasswordPolicyName = 0x18 ProtectedEntry = 0x15 QRCode = 0x20 RunCommand = 0x12 ShiftDoubleClickAction = 0x17 Title = 0x03 TwoFactorKey = 0x1b URL = 0x0d Username = 0x04 )
FIXME: should create some proper enum's here type HeaderType byte type FieldType byte
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderRecord ¶
type HeaderRecord struct { Type byte Data interface{} }
func (*HeaderRecord) String ¶
func (h *HeaderRecord) String() string
type PasswordRecord ¶
type PasswordRecord struct { // this makes the assumption that you can only have one field of each type. Fields map[byte]Field }
func NewPasswordRecord ¶
func NewPasswordRecord() PasswordRecord
func (*PasswordRecord) AddField ¶
func (p *PasswordRecord) AddField(typeID byte, rawData []byte) error
func (*PasswordRecord) Sha256 ¶
func (p *PasswordRecord) Sha256() [32]byte
func (*PasswordRecord) String ¶
func (p *PasswordRecord) String() string
Click to show internal directories.
Click to hide internal directories.