sshvault

package module
Version: v0.0.0-...-bcf6873 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2021 License: BSD-3-Clause Imports: 26 Imported by: 0

README

ssh-vault 🌰

build test Coverage Status Go Report Card

encrypt/decrypt using ssh private keys

Documentation

https://ssh-vault.com

Usage
$ ssh-vault -h

Example:

$ echo "secret" | ssh-vault -u <github.com/user> create

Installation

Mac OS
brew install ssh-vault
Binaries

Binaries and packages for a variety of platforms are published to Bintray: Download

To download specific version use URL like https://dl.bintray.com/nbari/ssh-vault/ssh-vault_0.12.4_amd64.deb

To download the latest version:

PACKAGING=amd64.deb
LATEST_VERSION=$(curl -w "%{redirect_url}" -o /dev/null -s https://bintray.com/nbari/ssh-vault/ssh-vault/_latestVersion | sed 's|.*/||')
curl -L -O "https://dl.bintray.com/nbari/ssh-vault/ssh-vault_${LATEST_VERSION}_${PACKAGING}"
Compile from source

Setup go environment https://golang.org/doc/install

For example using $HOME/go for your workspace

$ export GOPATH=$HOME/go

Get the code:

$ go get github.com/ssh-vault/ssh-vault

Build by just typing make:

$ cd $GOPATH/src/github.com/ssh-vault/ssh-vault
$ make

Issues

Please feel free to raise any issue, feature requirement or a simple comment here.

Documentation

Index

Constants

View Source
const GITHUB = "https://github.com"

GITHUB https://github.com/<username>.keys

View Source
const SSHKEYS_ONLINE = "https://ssh-keys.online/new"

SSHKEYS_ONLINE create new pair of keys online

Variables

This section is empty.

Functions

func Cache

func Cache() *cache

Cache creates ~/.ssh/vault

func New

func New(f, k, u, o, v string) (*vault, error)

New initialize vault parameters

func Shred

func Shred(file string) error

Shred securely delete a file

Types

type Locksmith

type Locksmith struct {
	URL string
}

Locksmith implements Schlosser

func (Locksmith) GetKey

func (l Locksmith) GetKey(u string) ([]string, error)

GetKey fetches ssh-key from url

type Schlosser

type Schlosser interface {
	GetKey(string) ([]string, error)
}

Schlosser interface

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL