spass

package
v0.0.0-...-8bec915 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data_b64 []byte, password string) ([]byte, error)

Types

type Address

type Address struct {
	ID             uint
	Full_Name      string
	Company_Name   string
	Street_Address string
	City           string
	State          string
	Zipcode        string
	Country_Code   string
	Phone_Number   string
	Email          string
	Date_Modified  uint
	Reserved_4     string
	Reserved_5     string
	Reserved_6     string
}

type Card

type Card struct {
	ID                    uint
	Card_Number_Encrypted string
	Card_Security_Code    string
	First_Six_Digit       string
	Last_Four_Digit       string
	Name_On_Card          string
	Expiration_Month      string
	Expiration_Year       string
	Billing_Address_ID    uint
	Vault_Status          string
	Date_Modified         uint
	Reserved_4            string
	Reserved_5            string
	Reserved_6            string
	Is_Encrypted          string
}

type Note

type Note struct {
	ID            uint
	Note_Title    string
	Note_Details  string
	Date_Modified uint
}

type Password

type Password struct {
	ID                  uint
	Origin_URL          string
	Action_URL          string
	Username_Element    string
	Username_Value      string
	ID_TZ_Enc           string
	Password_Element    string
	Password_Value      string
	PW_TZ_Enc           string
	Host_URL            string
	SSL_Valid           string
	Preferred           string
	Blacklisted_By_User string
	Use_Additional_Auth string
	CM_API_Support      string
	Created_Time        uint
	Modified_Time       uint
	Title               string
	Favicon             []byte
	Source_Type         string
	App_Name            string
	Package_Name        string
	Package_Signature   string
	Reserved_1          string
	Reserved_2          string
	Reserved_3          string
	Reserved_4          string
	Reserved_5          string
	Reserved_6          string
	Reserved_7          string
	Reserved_8          string
	Credential_Memo     string
	OTP                 string
	Root_ID             string
	Parent_ID           string
}

type SPASS

type SPASS struct {
	Version   uint
	Passwords []Password
	Cards     []Card
	Addresses []Address
	Notes     []Note
}

Struct that represents the .spass data.

func (*SPASS) Deserialize

func (spass *SPASS) Deserialize(data []byte) error

Given bytes that represent the decrypted SPASS file, parses the data and populates the SPASS object with the corresponding entries for passwords, cards, addresses, and notes, based on the module flags present in the file.

Jump to

Keyboard shortcuts

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