goose

command module
v0.0.0-...-d021894 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

goose

just like https://git.sr.ht/~sircmpwn/noseplumbs, but in go.
Cross-platform, has no dependencies except of golang.org/x/crypto/*.

Uses Ed25519 for signatures and curve25519/XSalsa20/Poly1305 for encryption/decryption.

Installation

make
make install
make uninstall

Usage

Generate secret key:

goose genkey -e > enc.priv.key
goose genkey -s > sign.priv.key

Generate public key:

goose pubkey < enc.priv.key > enc.pub.key
goose pubkey < sign.priv.key > sign.pub.key

Encrypt input:

goose encrypt enc.pub.key < cleartext.txt > ciphertext.bin

Decrypt input:

goose decrypt enc.priv.key < ciphertext.bin > cleartext.txt

Sign input:

goose sign sign.priv.key < cleartext.txt > cleartext.sig

Verify input signature:

goose verify sign.pub.key cleartext.sig < cleartext.txt

Enjoy!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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