[GH-ISSUE #176] How does spotify-player store the password? #85

Closed
opened 2026-03-02 23:44:23 +03:00 by kerem · 4 comments
Owner

Originally created by @sewnie on GitHub (Mar 31, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/176

From the looks of it, ~/.cache/credentials.json:auth_data contain a base64 string, how does it handle this? I'm asking this for a friend (discordo maintainer)

Originally created by @sewnie on GitHub (Mar 31, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/176 From the looks of it, `~/.cache/credentials.json:auth_data` contain a base64 string, how does it handle this? I'm asking this for a friend (discordo maintainer)
kerem closed this issue 2026-03-02 23:44:24 +03:00
Author
Owner

@sewnie commented on GitHub (Mar 31, 2023):

    #[serde(alias = "encoded_auth_blob")]
    #[serde(serialize_with = "serialize_base64")]
    #[serde(deserialize_with = "deserialize_base64")]
    pub auth_data: Vec<u8>,
}

<!-- gh-comment-id:1492303421 --> @sewnie commented on GitHub (Mar 31, 2023): ```rust #[serde(alias = "encoded_auth_blob")] #[serde(serialize_with = "serialize_base64")] #[serde(deserialize_with = "deserialize_base64")] pub auth_data: Vec<u8>, } ```
Author
Owner

@aome510 commented on GitHub (Mar 31, 2023):

It is stored using authentication blob. More details: https://github.com/librespot-org/librespot/blob/dev/docs/authentication.md#zeroconf-based-authentication. I'm not too familiar with the scheme though, If you want a more in-depth explanation, I would recommend reaching out the librespot library's maintainer.

<!-- gh-comment-id:1492436313 --> @aome510 commented on GitHub (Mar 31, 2023): It is stored using _authentication blob_. More details: https://github.com/librespot-org/librespot/blob/dev/docs/authentication.md#zeroconf-based-authentication. I'm not too familiar with the scheme though, If you want a more in-depth explanation, I would recommend reaching out the `librespot` library's maintainer.
Author
Owner

@sewnie commented on GitHub (Mar 31, 2023):

aigh

<!-- gh-comment-id:1492448508 --> @sewnie commented on GitHub (Mar 31, 2023): aigh
Author
Owner

@sewnie commented on GitHub (Mar 31, 2023):

t

<!-- gh-comment-id:1492448601 --> @sewnie commented on GitHub (Mar 31, 2023): t
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#85
No description provided.