georgebrock/1pass

Unable to unlock keychain

Opened this issue · 2 comments

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?

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.

@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...