cookie

package
v0.0.0-...-0871eb3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 16

BlockSize is block size fro encryption

Variables

This section is empty.

Functions

func GetAllValue

func GetAllValue(url string) (map[string]string, error)

GetAllValue is to get all values by url

func GetValue

func GetValue(url, key string) (string, error)

GetValue is to get value by key and url

func PrintCookies

func PrintCookies(url string) error

PrintCookies is to print cookies information

func SetProfile

func SetProfile(name string)

SetProfile is set profile like Default depending on environment

Types

type Cookie struct {
	// Domain is domain
	Domain string
	// Key is key
	Key string
	// Value is value of key
	Value string
	// EncryptedValue is encryption value
	EncryptedValue []byte
}

Cookie - Items for a cookie

func (*Cookie) DecryptedValue

func (c *Cookie) DecryptedValue() (string, error)

DecryptedValue - Get the unencrypted value of a Chrome cookie

Jump to

Keyboard shortcuts

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