Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobInfo ¶
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 ¶
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 ¶
SaveToFile saves the current blob to the specified path
Click to show internal directories.
Click to hide internal directories.