Re: minicrypt

Liste des GroupesRevenir à s crypt 
Sujet : Re: minicrypt
De : pollux (at) *nospam* tilde.club (Stefan Claas)
Groupes : sci.crypt
Date : 13. Oct 2024, 09:01:04
Autres entêtes
Organisation : Ch1ffr3punk5
Message-ID : <8730081fdce701c71053977dbdba8132656a622f@i2pn2.org>
References : 1 2 3
User-Agent : flnews/1.3.0pre11 (for GNU/Linux)
Byrl Raze Buckbriar wrote:
Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
 
On Fri, 11 Oct 2024 15:49:09 -0000
Stefan Claas <pollux@tilde.club> wrote:
 
Stefan Claas wrote:
 
Hi all,
 
a little program for encrypting messages with Ed25519
and XChaCha20#poly1305.
 
https://github.com/706f6c6c7578/minicrypt
 
While it only handles one recipient, the nice thing is
that it only has two commands (-d decrypt, -g gen keys),
so that even Granny Smith can use it. :-)
 
Another nice thing is that it produces no meta data. :-)
 
Hope you like!
 
 
Example pub key:
 
-----BEGIN PUBLIC KEY-----
tRxoeAmoI+0ygSbUYHBRpbYBDkC9+Q3rSTchzSXFHrU=
-----END PUBLIC KEY-----
 
Example message:
 
$ echo -n 'The quick brown fox jumps over the lazy dog.' | minicrypt stefan.pem
 
rtzEu9Ox1ZhlerV65F6KTw5xMR/a5RjlZP7swRYJ6BxUoZ0BIOQiQL7YXmahUmxI
Qcp9vYbhLT3o8rpRtdaxlFBiV5kIZTMIccd3Jq9wywM3Ws6fINauH4JDlM7RmWnU
ImRTdPacNNKevavohHPFFO5NWug=
 
(shorter than an age or GnuPG message. :-))
 
--
Regards
Stefan
 
What if Granny is not a golang programmer? How then would Granny proceed?
 
How does Granny download and include the golang modules required to compile this?
 
How does Granny configure the GOROOT and GOPATH env variables?
 
Answers like, 'Become a go programmer', and 'Read the manual' are not valid.

The quick solution for Granny is to omit all the steps and download a binary
for her platform from the Releases, which I provide.
 
If Granny is going to use it, she needs a quick and simple solution.

Yes, download from the Releases.

https://github.com/706f6c6c7578/minicrypt/releases

Here is my guess on how to start:
 
$ go mod init minicrypt
$ go mod tidy

and $ go build -ldflags "-s -w" for an optimezed version,
instead of using $ go build.

A build or makefile would be useful to Granny.

I normally don't do this, but maybe in the future I will
inlude go.mod and go.sum, so that Granny can just run
the build command.

It would be nice to have a makefile that sets up the GOPATH and GOROOT in the local directory then runs goget, gomod and build. Trying to configure all of that manually is confusing and error-prone for non-go programmers.

When Granny downloads Go, from the official site, it is explained
there how to set GOPATH and GOROOT. And if Granny likes to compile
for Grandpa and friends, she can use my script, which compiles for
different platforms https://github.com/706f6c6c7578/go-build-all

--
Regards
Stefan

Date Sujet#  Auteur
11 Oct 24 * minicrypt6Stefan Claas
11 Oct 24 `* Re: minicrypt5Stefan Claas
12 Oct 24  +* Re: minicrypt2Stefan Claas
16 Oct 24  i`- Re: minicrypt1Stefan Claas
13 Oct 24  `* Re: minicrypt2Byrl Raze Buckbriar
13 Oct 24   `- Re: minicrypt1Stefan Claas

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal