GithubHelp home page GithubHelp logo

ghedo / safely Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 723 KB

:closed_lock_with_key: Pretty command-line password manager

Home Page: https://ghedo.github.io/safely/

License: BSD 2-Clause "Simplified" License

Makefile 0.80% Go 99.20%

safely's Introduction

safely

Travis CI

safely is a command-line tool for managing passwords. It stores all your credentials in a simple JSON-formatted file, encrypted and signed using your private OpenPGP key: this makes it pretty secure and allows manual decryption of the database when needed.

Features

  • Simple database format and GPG-based encryption to avoid lock-in.
  • Fool-proof command-line interface.
  • Support for 2-factor authentication, based on the TOTP algorithm (compatible with e.g. google-authenticator).
  • Support for password strength estimation.

Getting Started

Before starting, note that a running gpg-agent is required for secret key operations, which is generally a good thing since this way safely doesn't need to know your GPG key's passphrase.

You may also want to add the following definition to your gpg.conf:

default-key <your_key_id>

Where <your_key_id> is the ID of your key. This way the --keys <your_key_id> argument used below can be omitted.

To install, simply run:

$ go get github.com/ghedo/safely

Usage

Here are a few usage examples:

  • Create a new database:
$ safely --create --keys <your_key_id>
  • Add a new account:
$ safely --add google.com --keys <your_key_id>
  • Show password of a given account:
$ safely --pass google.com
  • Generate a 2-factor authentication token (you need to provide the 2-factor secret key during --add or --edit):
$ safely --2fa google.com
  • Save password to X clipboard:
$ safely --pass google.com | xclip -loops 1
  • Search accounts matching a string:
$ safely --search google
  • Remove account:
$ safely --remove google.com --keys <your_key_id>

See the man page for more information.

Building

safely is distributed as source code. Build with:

$ go build

Copyright

Copyright (C) 2014 Alessandro Ghedini [email protected]

See COPYING for the license.

safely's People

Contributors

ghedo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.