Documentation
¶
Overview ¶
Backend orchestrates all database actions
Index ¶
- Variables
- func InitGCM(secretKey []byte) (cipher.AEAD, error)
- type ArgonConfig
- type Backend
- func (backend *Backend) CmpMasterPassword(masterPasswordGUI string) (bool, error)
- func (backend *Backend) CountMasterEntries() (int, error)
- func (backend *Backend) CountServiceNameOccurences(serviceName string) (int, error)
- func (backend *Backend) CreateStructure() error
- func (backend *Backend) DecryptPasswordEntry(serviceName string, masterPasswordGUI string) (PasswordEntry, error)
- func (backend *Backend) DeletePasswordEntry(serviceName string) error
- func (backend *Backend) EncryptPasswordEntry(serviceName string, password string, username string, masterPasswordGUI string) error
- func (backend *Backend) GetPasswordEntriesList() ([]string, error)
- func (backend *Backend) GetUserSecretKey(masterPasswordGUI string) ([]byte, error)
- func (backend *Backend) InitMaster(masterPassword string) error
- type PasswordEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var DeletedMoreRowsThenExpected = errors.New("Query deleted more rows then expected.")
View Source
var EmptyMasterPassword = errors.New("No master passwrod given to compare.")
View Source
var EmptyPassword = errors.New("No password given to insert.")
View Source
var EmptyServiceName = errors.New("No service name given to insert.")
View Source
var EmptyUsername = errors.New("No username name given to insert.")
View Source
var MasterPasswordDoNotMatch = errors.New("Provided master password do not match database.")
View Source
var NoRowsDeleted = errors.New("Query did not delete any rows.")
View Source
var ServiceNameAlreadyTaken = errors.New("Provided service name is already present in database.")
View Source
var ServiceNameNotFound = errors.New("Provided service name is not present in database.")
Functions ¶
Types ¶
type ArgonConfig ¶
type ArgonConfig struct {
// contains filtered or unexported fields
}
func GetDefaultArgonConfig ¶
func GetDefaultArgonConfig() ArgonConfig
type Backend ¶
func Initialize ¶
Opens connection to the sqlite local database
func (*Backend) CmpMasterPassword ¶
func (*Backend) CountMasterEntries ¶
func (*Backend) CountServiceNameOccurences ¶
func (*Backend) CreateStructure ¶
Create db from schema
func (*Backend) DecryptPasswordEntry ¶
func (backend *Backend) DecryptPasswordEntry(serviceName string, masterPasswordGUI string) (PasswordEntry, error)
Finds and decrypts password and username for given service name
func (*Backend) DeletePasswordEntry ¶
func (*Backend) EncryptPasswordEntry ¶
func (backend *Backend) EncryptPasswordEntry(serviceName string, password string, username string, masterPasswordGUI string) error
Inserts encrypted password and username for given service name
func (*Backend) GetPasswordEntriesList ¶
func (*Backend) GetUserSecretKey ¶
func (*Backend) InitMaster ¶
Create all necessary crypto primitives and insert them with master password to db
type PasswordEntry ¶
Click to show internal directories.
Click to hide internal directories.