Git Product home page Git Product logo

seal's Introduction

Seal

Seal is a simple program to encrypt files, notes, and passwords. Seal depends on the vis editor because vis can be used in a pipe without writing temporary files. Install vis by compiling it from source or using your package manager:

Distro Command to install Vis
Arch Linux pacman -S vis
Debian apt-get install vis
OSX Homebrew pull request

If you have any ideas on how Seal could use Vim without writing data in cleartext to disk, let me know!

First steps

Install Seal and generate your private key:

$ go get github.com/davidlazar/seal/...

$ seal-keygen 
Created directory /home/david/.seal
Enter passphrase: 
Enter same passphrase again: 
Wrote public key: /home/david/.seal/david.publickey
Wrote private key: /home/david/.seal/david.privatekey

Backup your private key:

$ cp ~/.seal/david.privatekey /mnt/usbkey
$ lpr ~/.seal/david.privatekey  # print the private key

Encrypt files

Encrypt a file:

$ seal example.pdf
Wrote example.pdf.sealed (encrypted with key david)
$ rm example.pdf

Reveal the contents of the encrypted file:

$ seal-cat example.pdf.sealed | zathura -
Enter passphrase for key david: ...

Encrypt notes

Seal can create and edit encrypted documents. You do not need to enter a passphrase to create an encrypted document:

$ seal-edit doc.txt.sealed  # launches the vis editor

Subsequent edits require a passphrase:

$ seal-edit doc.txt.sealed
Enter passphrase for key david: ...

Manage passwords

The seal-pw program can be used as a password manager. To generate a password for a new account:

$ seal-pw github  # launches the vis editor to specify account information

Run the same command again to copy the password to the clipboard:

$ seal-pw github
Enter passphrase for key david: ...
url: github.com
username: davidlazar
Password copied to clipboard for 10 seconds.

Use seal-cat and seal-edit to view and update account information:

$ seal-cat github 
Enter passphrase for key david: 
url: github.com
username: davidlazar
clipboard: lQBphTfTTaafOEFCJHc4udEJYvAe99eJ

Related work

  • Pick: Minimal password manager for macOS and Linux
  • Pwclip: Hash-based password manager

seal's People

Contributors

davidlazar avatar

Stargazers

 avatar Pratik avatar Pedro F. Albanese avatar Mauro Risonho de Paula Assumpção avatar  avatar Thomas Swearingen avatar  avatar ノウラ | Flare avatar idk avatar Faraz Fallahi avatar bonedaddy avatar Steve Phillips avatar doniexun avatar Yuriy Dybskiy avatar  avatar Andrejs Agejevs avatar Will Ridgers avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

doniexun

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.