A command-line tool using the saltpack messaging format and the keys.pub Go library.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
James Mills ce2b9f6573
Add support for sign and verify
2 months ago
cmd Add support for sign and verify 2 months ago
.drone.yml Refactor salty-keygen as a library function (#8) 2 months ago
.gitignore Initla Commit 2 months ago
LICENSE Initla Commit 2 months ago
README.md Refactor salty-keygen as a library function (#8) 2 months ago
crypto.go Add support for sign and verify 2 months ago
crypto_test.go Add support for sign and verify 2 months ago
go.mod Refactor salty-keygen as a library function (#8) 2 months ago
go.sum Initla Commit 2 months ago
keys.go Refactor salty-keygen as a library function (#8) 2 months ago
keys_test.go Refactor salty-keygen as a library function (#8) 2 months ago
version.go Initla Commit 2 months ago

README.md

salty

Build Status

A command-line tool using the saltpack messaging format and the keys.pub Go library.

Install

$ go install go.mills.io/salty/cmd/salty-keygen@latest
$ go install go.mills.io/salty/cmd/salty@latest

Usage

Generating Keys

Alice:

$ salty-keygen -o alice.key
Public key: kex1jszw7x5yc8509rssv9avmkjk749m5r0zjt6twtmtmtrq8wyt662q680s99

Bob:

$ salty-keygen -o bob.key
Public key: kex1gsjmjud9fpyc39hczyugxeg29ljesnxlja44lk2xlg6cu8tlpfkqdppaw4

Encrypting Messages

From Alice to Bob:

$ salty -i alice.key -r kex1gsjmjud9fpyc39hczyugxeg29ljesnxlja44lk2xlg6cu8tlpfkqdppaw4
Hello bob!
^D
BEGIN SALTPACK ENCRYPTED MESSAGE. keDIDMQWYvVR58B FTfTeDQNHuepdES xwnHuwnSTNQAils We53yO0JGG4aOeO gvFnsz1bwz8y1vY 2Qg6HCqX78YKwl1 D2QzLdY4rKG3Zd3 sHVWVs731LISwgH DTy0zz3dTmAZKHq nmwniEVfs432K38 PRlNWhp1AgvHL6h 98KtaudNLc876A3 5PMHnSlHTRVaQuX US1W4tS3R18ib0b CVIib7v9lT95jeg B6isCaISrRNgl3q VQjjgTWkG271jG3 7WwD6OJbAqdtkeF N50CcS8OLzFvcwM tCv88fBw5XJNKWB KyQXxu9kztR2nnb WtkhCNSPle4lH0E QqRkYN7lLvZieB8 mahEMNopC0vtNSa HE72KIr9wkkG13m 9bP. END SALTPACK ENCRYPTED MESSAGE.

Decrypting Messages

Bob (from Alice):

$ salty -i bob.key -d
BEGIN SALTPACK ENCRYPTED MESSAGE. keDIDMQWYvVR58B FTfTeDQNHuepdES xwnHuwnSTNQAils We53yO0JGG4aOeO gvFnsz1bwz8y1vY 2Qg6HCqX78YKwl1 D2QzLdY4rKG3Zd3 sHVWVs731LISwgH DTy0zz3dTmAZKHq nmwniEVfs432K38 PRlNWhp1AgvHL6h 98KtaudNLc876A3 5PMHnSlHTRVaQuX US1W4tS3R18ib0b CVIib7v9lT95jeg B6isCaISrRNgl3q VQjjgTWkG271jG3 7WwD6OJbAqdtkeF N50CcS8OLzFvcwM tCv88fBw5XJNKWB KyQXxu9kztR2nnb WtkhCNSPle4lH0E QqRkYN7lLvZieB8 mahEMNopC0vtNSa HE72KIr9wkkG13m 9bP. END SALTPACK ENCRYPTED MESSAGE.
^D
# signed by: kex1jszw7x5yc8509rssv9avmkjk749m5r0zjt6twtmtmtrq8wyt662q680s99
Hello bob!

License

salty is licensed under the terms of the MIT License