Versions in this module Expand all Collapse all v0 v0.9.0 Jun 26, 2022 Changes in this version + const BufSize + const SocketName + 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 struct + AId string + ClientId string + IdKey string + func NewClient(clientId string) (client *Client, err error) + 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 struct + ActionName string + ClientId string + Error string + ErrorCode string + Message string + Nonce string + PublicKey string + RequestId string + Success string + Version string + func GenerateConnReq(action, clientID string) (ret *ConnMsg, err error) + func ParseConnMsg(bmsg []byte) (ret *ConnMsg, err error) + func (c *ConnMsg) GetData() interface{} + type ConnectionI interface + Close func() + Connect func(string) error + Recv func(int, int) ([]byte, error) + Send func([]byte) error + type GroupChild struct + Children []GroupChild + type GroupEntry struct + Name string + Uuid string + type GroupsEntry struct + Groups []GroupChild + type KpXcMitm struct + func NewKpXcMitm(modifier KpXcMitmI) (ret *KpXcMitm, err error) + func (k *KpXcMitm) HandleReq(breq []byte) (bres []byte, err error) + type KpXcMitmI interface + ModifyReq func(*ConnMsg) error + ModifyRes func(*ConnMsg) error + type KpXcProxy struct + func NewKpXcProxy() (ret *KpXcProxy, err error) + func (k *KpXcProxy) HandleReq(breq []byte) (res []byte, err error) + type LoginEntry struct + Expired string + Login string + Name string + Password string + StringFields []map[string]string + Uuid string + type MsgAssociate struct + IdKey string + Key string + type MsgBase struct + ActionName string + Hash string + Id string + Nonce string + Success string + Version string + func (m *MsgBase) IsSuccess() bool + type MsgCreateNewGroup struct + GroupName string + type MsgGeneratePassword struct + Password string + type MsgGetDatabaseGroups struct + DefaultGroup string + DefaultGroupAlwaysAllow bool + Groups GroupsEntry + type MsgGetDatabasehash struct + type MsgGetLogins struct + Count int + Entries []LoginEntry + HttpAuth string + Keys []key + SubmitUrl string + Url string + type MsgGetTotp struct + Totp string + Uuid string + type MsgI interface + IsSuccess func() bool + func GetMessageType(action string) (ret MsgI, err error) + type MsgLockDatabase struct + type MsgSetLogin struct + Count int + DownloadFavicon bool + Entries []LoginEntry + Group string + GroupUuid string + Login string + Password string + SubmitUrl string + Url string + Uuid string + type PosixConnection struct + func (conn *PosixConnection) Close() + func (conn *PosixConnection) Connect(address string) (err error) + func (conn *PosixConnection) Recv(bufsize int, timeout int) (ret []byte, err error) + func (conn *PosixConnection) Send(message []byte) (err error) + type Server struct + func NewServer(serv ServerI, conn ConnectionI) (ret *Server) + func (s *Server) Run() (err error) + type ServerI interface + HandleReq func([]byte) ([]byte, error) + type StdinoutConnection struct + func (conn *StdinoutConnection) Close() + func (conn *StdinoutConnection) Connect(address string) (err error) + func (conn *StdinoutConnection) Recv(bufsize int, timeout int) (ret []byte, err error) + func (conn *StdinoutConnection) Send(message []byte) (err error)