Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with accessing keyrings (set by R) in python #157

Open
NefeliK30 opened this issue Dec 16, 2024 · 1 comment
Open

Issue with accessing keyrings (set by R) in python #157

NefeliK30 opened this issue Dec 16, 2024 · 1 comment

Comments

@NefeliK30
Copy link

Hello, I am having issues accessing keyrings in python when the keyrings were created by R using keyring package.

In R I can create a keyring using

keyring::key_set_with_value(service = "nef-test-service", username = "nefeli_test", password = "my_secret_key", keyring = "nefeli")

When I am trying to access it through python the password returned is not readable

import keyring
import keyring.backends.Windows

# Set up Windows backend
keyring.set_keyring(keyring.backends.Windows.WinVaultKeyring())

service_name = "nefeli:nef-test-service:nefeli_test"
username = "nefeli_test"

# Get the password
password = keyring.get_password(service_name, username)

print(password)
啨噓桌䉡䭖晡塈䅁佋戶䥵乔㐶祒杅煮唹潤⽮䝪㉧㴸

Where is the issue and how can I solve it?
Thank you very much!

@gaborcsardi
Copy link
Member

The Windows credential store does not support multiple keyrings. The R package emulates them, but the emulation is not compatible with other tools. (Unless they implement the same emulation of course.)

Does it work if you use the default keyring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants