Code Monkey home page Code Monkey logo

op2pass's Introduction

op2pass

A quick hack to import 1Password items as provided from op get item into pass (password store).

Items are named as /website-domain/username. Content is the password, unless other fields have been discovered in which case it is made a multiline entry.

No support for OTP or anything fancy.

Usage

Run go install from the this repo then run op2pass <file.json> where file.json is the result of doing op get item.

If you wish to import the whole 1Password vault, run the following (these are for the fish shell, bash is similar):

$ mkdir /dev/shm/op
$ cd /dev/shm/op
$ op list items | jq -r '.[] | .uuid' > uuids.txt
$ for uuid in (cat uuids.txt); echo $uuid; op get item $uuid | jq > $uuid.json; end
$ for f in (ls *.json); echo $f; op2pass $f; mv $f $f.done; end

Whenever there are several options for the website-domain part, you will be interactively asked to select one. Options come from the item Title and URL fields.

License

GPL 3.0

op2pass's People

Contributors

hsanjuan avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.