pass-import, 用于从现有的密码管理器中导入数据的传递扩展

分享于 

10分钟阅读

GitHub

  繁體 雙語
A generic importer extension for the standard unix password manager pass.
  • 源代码名称:pass-import
  • 源代码网址:http://www.github.com/roddhjav/pass-import
  • pass-import源代码文档
  • pass-import源代码下载
  • Git URL:
    git://www.github.com/roddhjav/pass-import.git
    Git Clone代码到本地:
    git clone http://www.github.com/roddhjav/pass-import
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/roddhjav/pass-import
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    通过导入

    Build StatusCode CoverageCode QualityLast Release

    用于从大多数现有密码管理器导入数据的传递命令行扩展。

    描述

    pass import 是密码存储扩展,允许你将密码数据库导入密码存储库。 它本机支持从 20个不同的密码管理器导入。 更多的经理支持可以轻松添加。

    在现有缺省密码存储中输入密码,因此密码存储必须在使用 pass init 之前进行初始化。

    默认情况下,在密码存储的root 中传递导入条目,并且仅保留主数据( 密码,登录,电子邮件,网址,群组)。 可以使用提供的选项更改这里行为。

    通过导入处理重复,并且与 browserpass 兼容。

    支持以下密码管理器的收费:

    密码管理器如何导出数据 命令行
    1password我将看到这个指南pass import 1password file.csv
    1 password4文件> 导出:CSVpass import 1password4 file.csv
    1 password4pif文件> 导出:1 PIF文件pass import 1password4pif file.1pif
    bitwarden工具:导出pass import bitwarden file.csv
    Chrome我将看到这个指南pass import chrome file.csv
    enpass文件> 导出> 为 CSVpass import enpass file.csv
    dashlane文件> 在 CSV 导出> 不安全的归档文件pass import dashlane file.csv
    文件> 导出密码: 纯XML格式pass import fpm file.xml
    文件> 导出:是: CSV文件pass import gorilla file.csv
    kedpm文件> 导出密码: 纯XML格式pass import kedpm file.xml
    文件> 导出> Keepass2 ( XML )pass import keepass file.xml
    keepass2csv文件> 出口> Keepass ( CSV )。pass import keepasscsv file.csv
    keepassx文件> 导出到> Keepass XML文件pass import keepassx file.xml
    keepassxc数据库> 导出到CSV文件pass import keepassxc file.csv
    lastpass更多选项> 提前> 导出。pass import lastpass file.csv
    网络管理工具还支持特定的网络管理器目录和ini文件。pass import networkmanager
    密码导出程序add-ons: 导出密码: CSVpass import passwordexporter file.csv
    pwsafe文件> 导出到> XML格式pass import pwsafe file.xml
    启示录文件> 导出:XMLpass import revelation file.xml
    roboform> 选项> 数据&同步> 导出至: CSV文件pass import roboform file.csv

    用法

    
    usage: pass import [-h] [-V] [[-p PATH] [-c] [-e] [-f] | -l] [manager] [file]
    
    
    
     Import data from most of the password manager. Passwords
    
    
     are imported in the existing default password store, therefore
    
    
     the password store must have been initialised before with 'pass init'
    
    
    
    positional arguments:
    
    
     manager Can be: 1password, 1password4, 1password4pif,
    
    
     bitwarden, chrome, dashlane, enpass, fpm, gorilla,
    
    
     kedpm, keepass, keepasscsv, keepassx, keepassxc,
    
    
     lastpass, networkmanager, passwordexporter, pwsafe,
    
    
     revelation, roboform.
    
    
     file File is the path to the file that contains the data to
    
    
     import, if empty read the data from stdin.
    
    
    
    optional arguments:
    
    
     -h, --help show this help message and exit
    
    
     -p PATH, --path PATH Import the passwords to a specific subfolder.
    
    
     -c, --clean Clean data before import.
    
    
     -e, --extra Also import all the extra data present.
    
    
     -l, --list List the supported password managers.
    
    
     -f, --force Overwrite existing path.
    
    
     -q, --quiet Be quiet.
    
    
     -v, --verbose Be verbose.
    
    
     -V, --version Show the program version and exit.
    
    
    
    More information may be found in the pass-import(1) man page.
    
    
    
    

    有关更多信息,请参见 man pass-import

    示例

    KeePass 进口密码

    
    pass import keepass keepass.xml
    
    
    (*) Importing passwords from keepass
    
    
    . File: keepass.xml
    
    
    . Number of password imported: 6
    
    
    . Passwords imported:
    
    
     Social/mastodon.social
    
    
     Social/twitter.com
    
    
     Social/news.ycombinator.com
    
    
     Servers/ovh.com
    
    
     Servers/ovh.com0
    
    
     Bank/aib
    
    
    
    

    向不同密码存储 输入密码

    
    export PASSWORD_STORE_DIR="~/.mypassword-store"
    
    
    pass init <gpg-id>
    
    
    pass import keepass keepass.xml
    
    
    
    

    将password导入到子文件夹

    
    pass import keepass keepass.xml -p Import/
    
    
    (*) Importing passwords from keepass
    
    
    . File: db/keepass.xml
    
    
    . Root path: Import
    
    
    . Number of password imported: 6
    
    
    . Passwords imported:
    
    
     Import/Social/mastodon.social
    
    
     Import/Social/twitter.com
    
    
     Import/Social/news.ycombinator.com
    
    
     Import/Servers/ovh.com
    
    
     Import/Servers/ovh.com0
    
    
     Import/Bank/aib
    
    
    
    

    的安全考虑

    密码不应在驱动器上以纯文本形式写入。 因此,在可能的情况下,应该将密码管道传递给导入:

    my_password_manager_export_cmd | pass import keepass

    否则,如果密码管理器缺少这里 命令行 选项,则应小心地删除纯文本密码数据库:

    pass import lastpass data.csv
    shred -u data.csv

    你可能还希望更新使用 pass-update 导入的密码。

    安装

    需求

    • pass 1.7.0 或者更大。
    • python3 ( python 3.4,3.5和 3.6 )
    • python-defusedxml
      • debian/ubuntu: sudo apt-get install python3-defusedxml
      • OSX: pip3 install defusedxml

    git

    git clone https://github.com/roddhjav/pass-import/cd pass-import
    sudo make install # For OSX: make install PREFIX=/usr/local

    ArchLinux

    pass-importArch用户存储库中可用。

    pacaur -S pass-import # or your preferred AUR install method

    稳定版本

    wget https://github.com/roddhjav/pass-import/releases/download/v2.2/pass-import-2.2.tar.gz
    tar xzf pass-import-2.2.tar.gzcd pass-import-2.2
    sudo make install # For OSX: make install PREFIX=/usr/local

    释放和提交使用进行签名06A26D531D56C42D66805049C5469996F0DF68EC 。你应该检查密钥的指纹并验证签名:

    wget https://github.com/roddhjav/pass-import/releases/download/v2.2/pass-import-2.2.tar.gz.asc
    gpg --recv-keys 06A26D531D56C42D66805049C5469996F0DF68EC
    gpg --verify pass-import-2.2.tar.gz.asc

    捐赠

    反馈,贡献者,请求请求都非常欢迎。 请阅读 CONTRIBUTING.md 文件,了解有关捐赠过程的详细信息。

    许可证

    
    Copyright (C) 2017 Alexandre PUJOL
    
    
    
    This program is free software: you can redistribute it and/or modify
    
    
    it under the terms of the GNU General Public License as published by
    
    
    the Free Software Foundation, either version 3 of the License, or
    
    
    (at your option) any later version.
    
    
    
    This program is distributed in the hope that it will be useful,
    
    
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    
    
    GNU General Public License for more details.
    
    
    
    You should have received a copy of the GNU General Public License
    
    
    along with this program. If not, see <http://www.gnu.org/licenses/>.
    
    
    
    

    数据  IMP  MAN  ext  password  导入  
    相关文章