Documentation ¶
Index ¶
- Constants
- func DecryptBytes(nonce sodium.BoxNonce, pubkey sodium.BoxPublicKey, privkey sodium.BoxSecretKey, ...) (ret []byte, err error)
- func EncryptBytes(nonce sodium.BoxNonce, pubkey sodium.BoxPublicKey, privkey sodium.BoxSecretKey, ...) (ret []byte)
- func GenerateRequestID() string
- type Client
- func (c *Client) Associate() (ret *MsgAssociate, err error)
- func (c *Client) ChangePublicKeys() (ret *ConnMsg, err error)
- func (c *Client) Close()
- func (c *Client) Connect() error
- func (c *Client) CreateNewGroup(groupName string) (ret *MsgCreateNewGroup, err error)
- func (c *Client) GeneratePassword(timeout int) (ret *MsgGeneratePassword, err error)
- func (c *Client) GetDatabaseGroups() (ret *MsgGetDatabaseGroups, err error)
- func (c *Client) GetDatabasehash() (ret *MsgGetDatabasehash, err error)
- func (c *Client) GetLogins(url, submitUrl, httpAuth string) (ret *MsgGetLogins, err error)
- func (c *Client) GetTotp(uuid string) (ret *MsgGetTotp, err error)
- func (c *Client) LoadAssoc(file string) (err error)
- func (c *Client) LockDatabase() (err error)
- func (c *Client) SaveAssoc(file string) (err error)
- func (c *Client) SendMsg(req *ConnMsg) (ret *ConnMsg, err error)
- func (c *Client) SetLogin(url, submitUrl, login, password, group, groupUuid, uuid string) (ret *MsgSetLogin, err error)
- func (c *Client) TestAssociate() (ret *MsgAssociate, err error)
- type ConnMsg
- type ConnectionI
- type GroupChild
- type GroupEntry
- type GroupsEntry
- type KpXcMitm
- type KpXcMitmI
- type KpXcProxy
- type LoginEntry
- type MsgAssociate
- type MsgBase
- type MsgCreateNewGroup
- type MsgGeneratePassword
- type MsgGetDatabaseGroups
- type MsgGetDatabasehash
- type MsgGetLogins
- type MsgGetTotp
- type MsgI
- type MsgLockDatabase
- type MsgSetLogin
- type PosixConnection
- type Server
- type ServerI
- type StdinoutConnection
Constants ¶
View Source
const BufSize int = 1024 * 1024
View Source
const SocketName string = "org.keepassxc.KeePassXC.BrowserServer"
Variables ¶
This section is empty.
Functions ¶
func DecryptBytes ¶
func DecryptBytes(nonce sodium.BoxNonce, pubkey sodium.BoxPublicKey, privkey sodium.BoxSecretKey, data []byte) (ret []byte, err error)
func EncryptBytes ¶
func EncryptBytes(nonce sodium.BoxNonce, pubkey sodium.BoxPublicKey, privkey sodium.BoxSecretKey, data []byte) (ret []byte)
func GenerateRequestID ¶
func GenerateRequestID() string
Types ¶
type Client ¶
type Client struct { ClientId string IdKey string AId string // contains filtered or unexported fields }
func (*Client) Associate ¶
func (c *Client) Associate() (ret *MsgAssociate, err error)
func (*Client) ChangePublicKeys ¶
func (*Client) CreateNewGroup ¶
func (c *Client) CreateNewGroup(groupName string) (ret *MsgCreateNewGroup, err error)
func (*Client) GeneratePassword ¶
func (c *Client) GeneratePassword(timeout int) (ret *MsgGeneratePassword, err error)
func (*Client) GetDatabaseGroups ¶
func (c *Client) GetDatabaseGroups() (ret *MsgGetDatabaseGroups, err error)
func (*Client) GetDatabasehash ¶
func (c *Client) GetDatabasehash() (ret *MsgGetDatabasehash, err error)
func (*Client) GetLogins ¶
func (c *Client) GetLogins(url, submitUrl, httpAuth string) (ret *MsgGetLogins, err error)
func (*Client) LockDatabase ¶
func (*Client) SetLogin ¶
func (c *Client) SetLogin(url, submitUrl, login, password, group, groupUuid, uuid string) (ret *MsgSetLogin, err error)
func (*Client) TestAssociate ¶
func (c *Client) TestAssociate() (ret *MsgAssociate, err error)
type ConnMsg ¶
type ConnMsg struct { ActionName string `json:"action"` Nonce string `json:"nonce"` ClientId string `json:"clientID"` RequestId string `json:"requestID"` Message string `json:"message"` PublicKey string `json:"publicKey"` Success string `json:"success"` Error string `json:"error"` ErrorCode string `json:"errorCode"` Version string `json:"version"` // contains filtered or unexported fields }
func GenerateConnReq ¶
func ParseConnMsg ¶
type ConnectionI ¶
type GroupChild ¶
type GroupChild struct { GroupEntry Children []GroupChild `json:"children"` }
type GroupEntry ¶
type GroupsEntry ¶
type GroupsEntry struct {
Groups []GroupChild `json:"groups"`
}
type KpXcMitm ¶
type KpXcMitm struct {
// contains filtered or unexported fields
}
func NewKpXcMitm ¶
type KpXcProxy ¶
type KpXcProxy struct {
// contains filtered or unexported fields
}
func NewKpXcProxy ¶
type LoginEntry ¶
type MsgAssociate ¶
type MsgBase ¶
type MsgCreateNewGroup ¶
type MsgGeneratePassword ¶
type MsgGetDatabaseGroups ¶
type MsgGetDatabaseGroups struct { MsgBase DefaultGroup string `json:"defaultGroup"` DefaultGroupAlwaysAllow bool `json:"defaultGroupAlwaysAllow"` Groups GroupsEntry `json:"groups"` }
type MsgGetDatabasehash ¶
type MsgGetDatabasehash struct {
MsgBase
}
type MsgGetLogins ¶
type MsgGetTotp ¶
type MsgLockDatabase ¶
type MsgLockDatabase struct {
MsgBase
}
type MsgSetLogin ¶
type MsgSetLogin struct { MsgBase Url string `json:"url"` SubmitUrl string `json:"submitUrl"` Login string `json:"login"` Password string `json:"password"` Group string `json:"group"` GroupUuid string `json:"groupUuid"` Uuid string `json:"uuid"` DownloadFavicon bool `json:"downloadFavicon"` Entries []LoginEntry `json:"entries"` Count int `json:"count"` }
type PosixConnection ¶
type PosixConnection struct {
// contains filtered or unexported fields
}
func (*PosixConnection) Close ¶
func (conn *PosixConnection) Close()
func (*PosixConnection) Connect ¶
func (conn *PosixConnection) Connect(address string) (err error)
func (*PosixConnection) Recv ¶
func (conn *PosixConnection) Recv(bufsize int, timeout int) (ret []byte, err error)
func (*PosixConnection) Send ¶
func (conn *PosixConnection) Send(message []byte) (err error)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(serv ServerI, conn ConnectionI) (ret *Server)
type StdinoutConnection ¶
type StdinoutConnection struct {
// contains filtered or unexported fields
}
func (*StdinoutConnection) Close ¶
func (conn *StdinoutConnection) Close()
func (*StdinoutConnection) Connect ¶
func (conn *StdinoutConnection) Connect(address string) (err error)
func (*StdinoutConnection) Recv ¶
func (conn *StdinoutConnection) Recv(bufsize int, timeout int) (ret []byte, err error)
func (*StdinoutConnection) Send ¶
func (conn *StdinoutConnection) Send(message []byte) (err error)
Click to show internal directories.
Click to hide internal directories.