1pass

1Password的命令行界面。(A command line interface for 1Password.)

  • 所有者: georgebrock/1pass
  • 平台: Linux, Mac, Windows
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

=====
1pass

A command line interface (and Python library) for reading passwords from
1Password <https://agilebits.com/onepassword>_.

Command line usage

To get a password::

1pass mail.google.com

By default this will look in ~/Dropbox/1Password.agilekeychain. If that's
not where you keep your keychain::

1pass --path ~/whatever/1Password.agilekeychain mail.google.com

Or, you can set your keychain path as an enviornment variable::

export ONEPASSWORD_KEYCHAIN=/path/to/keychain

1pass mail.google.com

By default, the name you pass on the command line must match the name of an
item in your 1Password keychain exactly. To avoid this, fuzzy matching is
made possible with the --fuzzy flag::

1pass --fuzzy mail.goog

If you don't want to be prompted for your password, you can use the
--no-prompt flag and provide the password via standard input instead::

emit_master_password, 1pass --no-prompt mail.google.com

Python usage

The interface is very simple::

from onepassword import Keychain

my_keychain = Keychain(path="~/Dropbox/1Password.agilekeychain")
my_keychain.unlock("my-master-password")
my_keychain.item("An item's name").password

An example of real-world use

I wrote this so I could add the following line to my .muttrc file::

set imap_pass = "`1pass 'Google: personal'`"

Now, whenever I start mutt, I am prompted for my 1Password Master Password
and not my Gmail password.

The --no-prompt flag is very useful when configuring mutt and PGP.
mutt passes the PGP passphrase via standard in, so by inserting 1pass
into this pipline I can use my 1Password master password when prompted for my
PGP keyphrase::

set pgp_decrypt_command="1pass --no-prompt pgp-passphrase, gpg --passphrase-fd 0 ..."

Contributors

License

1pass is licensed under the MIT license. See the license file for details.

While it is designed to read .agilekeychain bundles created by 1Password,
1pass isn't officially sanctioned or supported by
AgileBits <https://agilebits.com/>_. I do hope they like it though.

概覽

名稱與所有者georgebrock/1pass
主編程語言HTML
編程語言Python (語言數: 3)
平台Linux, Mac, Windows
許可證MIT License
發布數7
最新版本名稱0.2.1 (發布於 2014-07-10 07:53:34)
第一版名稱0.1.4 (發布於 )
創建於2013-02-17 21:28:07
推送於2021-05-26 10:50:50
最后一次提交2017-06-16 15:54:03
星數1k
關注者數21
派生數57
提交數76
已啟用問題?
問題數22
打開的問題數12
拉請求數4
打開的拉請求數13
關閉的拉請求數6
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部