blob

package
v0.0.0-...-59dfc81 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobInfo

type BlobInfo struct {
	Username    string
	DecodedBlob string
}

BlobInfo is the structure holding authentication blob data. The blob is an encoded/encrypted byte array (encoded as base64), holding the encryption keys, the deviceId, and the username.

func BlobFromFile

func BlobFromFile(path string) (BlobInfo, error)

BlobFromFile restores a Blob from the specified path

func NewBlobInfo

func NewBlobInfo(blob64 string, client64 string,
	keys crypto.Keys, deviceId string, username string) (BlobInfo, error)

NewBlobInfo creates a new BlobInfo structure with the blob data filled in DecodedBlob field

func (*BlobInfo) MakeAuthBlob

func (b *BlobInfo) MakeAuthBlob(deviceId string, client64 string, dhKeys crypto.Keys) (string, error)

MakeAuthBlob builds an encoded blob in order to authenticate against Spotify services

func (*BlobInfo) SaveToFile

func (b *BlobInfo) SaveToFile(path string) error

SaveToFile saves the current blob to the specified path

Jump to

Keyboard shortcuts

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