dashlane

package
v0.0.0-...-d1eb686 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const EXIST_URI = "https://ws1.dashlane.com/6/authentication/exists"
View Source
const LATEST_URI = "https://ws1.dashlane.com/12/backup/latest"
View Source
const REGISTER_URI = "https://ws1.dashlane.com/6/authentication/registeruki"
View Source
const SENDTOKEN_URI = "https://ws1.dashlane.com/6/authentication/sendtoken"

Variables

This section is empty.

Functions

func DecryptVault

func DecryptVault(data string, password string) (string, error)

DecryptVault decrypts the given vault with the given password

func GetEntry

func GetEntry(vault string)

func LatestToken

func LatestToken(login string, code string) (string, error)

func LatestVault

func LatestVault(login string, uki string) (map[string]interface{}, error)

func PostData

func PostData(uri string, data url.Values) (string, error)

func RegisterUki

func RegisterUki(devicename, login, token, uki string) error

Types

type ExistResult

type ExistResult int
const (
	EXIST_YES ExistResult = iota
	EXIST_YES_OTP_NEWDEVICE
	EXIST_NO
	EXIST_ERROR
)

func Exist

func Exist(login string) (ExistResult, error)

type PasswordEntry

type PasswordEntry struct {
	ID       string `xml:"Id,attr"`
	Title    string `xml:"Title,attr"`
	Login    string `xml:"Login,attr"`
	Password string `xml:"Password,attr"`
}

type SendTokenResult

type SendTokenResult int
const (
	UKI_SUCCESS SendTokenResult = iota
	UKI_OTP_NEEDED
	UKI_ERROR
)

func SendToken

func SendToken(login string) (SendTokenResult, error)

type Vault

type Vault struct {
	Passwords []PasswordEntry `xml:"KWAuthentifiant>KWDataItem"`
}

func ParseVault

func ParseVault(data, password string) (*Vault, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL