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

Unable to unlock keychain #38

Open
thiagodasilva opened this issue Sep 7, 2017 · 2 comments
Open

Unable to unlock keychain #38

thiagodasilva opened this issue Sep 7, 2017 · 2 comments

Comments

@thiagodasilva
Copy link

I'm unable to unlock my keychain using the example given on the README file:

[thiago@localhost ~]$ python
Python 2.7.13 (default, Jan 13 2017, 10:15:16) 
[GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from onepassword import Keychain
>>> k = Keychain(path="path_to_1Password.agilekeychain")
>>> k.unlock("mypass")
False

The interesting twist in this, is that I'm able to unlock a second Vault using the same exact steps.

Any ideas?

@AdamIsrael
Copy link
Collaborator

Are you 100% sure you're using the right password to unlock that keychain? If so, anything weird or different with how that keychain was created?

You could use pdb to step through the code and see where exactly it's failing.

@thiagodasilva
Copy link
Author

@AdamIsrael I'm 100% sure, tested several times as I really thought it was my mistake.

I don't think I did anything different to create the keychain, but if I remember correctly, I've changed the master password once before. Not sure that would cause any issues, but thought I'd mention it.

I tried debugging the code a bit and all I noticed is that it fails here: https://github.com/georgebrock/1pass/blob/master/onepassword/encryption_key.py#L56

Need to spend more time to debug further...

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