chrome

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 27 Imported by: 0

README

Known Safe Storage combinations

Account Name Application Portal App ID
Chrome Chrome Safe Storage chrome com.google.Chrome
Chromium Chromium Safe Storage chromium org.chromium.Chromium
Brave Brave Safe Storage brave
Microsoft Edge Microsoft Edge Safe Storage chromium (shared)
Opera uses Chromium Safe Storage chromium (shared)
Vivaldi (portal only) vivaldi com.vivaldi.Vivaldi
Arc Arc Safe Storage arc

SQL schemes of file Cookies, table cookies

extracted with sqlitebrowser

-- chromium 99 Linux
CREATE TABLE cookies(creation_utc INTEGER NOT NULL,
    top_frame_site_key TEXT NOT NULL,
    host_key TEXT NOT NULL,
    name TEXT NOT NULL,
    value TEXT NOT NULL,
    encrypted_value BLOB DEFAULT '',
    path TEXT NOT NULL,
    expires_utc INTEGER NOT NULL,
    is_secure INTEGER NOT NULL,
    is_httponly INTEGER NOT NULL,
    last_access_utc INTEGER NOT NULL,
    has_expires INTEGER NOT NULL DEFAULT 1,
    is_persistent INTEGER NOT NULL DEFAULT 1,
    priority INTEGER NOT NULL DEFAULT 1,
    samesite INTEGER NOT NULL DEFAULT -1,
    source_scheme INTEGER NOT NULL DEFAULT 0,
    source_port INTEGER NOT NULL DEFAULT -1,
    is_same_party INTEGER NOT NULL DEFAULT 0,
    UNIQUE (top_frame_site_key, host_key, name, path)
)

-- chrome 80
CREATE TABLE cookies(
    creation_utc INTEGER NOT NULL,
    host_key TEXT NOT NULL,
    name TEXT NOT NULL,
    value TEXT NOT NULL,
    path TEXT NOT NULL,
    expires_utc INTEGER NOT NULL,
    is_secure INTEGER NOT NULL,
    is_httponly INTEGER NOT NULL,
    last_access_utc INTEGER NOT NULL,
    has_expires INTEGER NOT NULL DEFAULT 1,
    is_persistent INTEGER NOT NULL DEFAULT 1,
    priority INTEGER NOT NULL DEFAULT 1,
    encrypted_value BLOB DEFAULT '',
    samesite INTEGER NOT NULL DEFAULT -1,
    source_scheme INTEGER NOT NULL DEFAULT 0,
    UNIQUE (host_key, name, path)
)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieStore

type CookieStore struct {
	cookies.DefaultCookieStore
	Database             *sqlite3.DbFile
	KeyringPasswordBytes []byte
	PasswordBytes        []byte
	DecryptionMethod     func(data, password []byte, dbVersion int64) ([]byte, error)
	// contains filtered or unexported fields
}

func (*CookieStore) Close

func (s *CookieStore) Close() error

func (*CookieStore) Open

func (s *CookieStore) Open() error

func (*CookieStore) SetKeyringPassword

func (s *CookieStore) SetKeyringPassword(password []byte) []byte

returns the previous password for later restoration used in tests

func (*CookieStore) SetPortalAppID added in v0.2.8

func (s *CookieStore) SetPortalAppID(id string)

func (*CookieStore) SetSafeStorage

func (s *CookieStore) SetSafeStorage(account, name, application string)

func (*CookieStore) TraverseCookies added in v0.2.3

func (s *CookieStore) TraverseCookies(filters ...kooky.Filter) kooky.CookieSeq

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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