Deutsch English Français Italiano |
<8730081fdce701c71053977dbdba8132656a622f@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: Stefan Claas <pollux@tilde.club> Newsgroups: sci.crypt Subject: Re: minicrypt Date: Sun, 13 Oct 2024 08:01:04 -0000 Organization: Ch1ffr3punk5 Message-ID: <8730081fdce701c71053977dbdba8132656a622f@i2pn2.org> References: <cc024f782029f2a2b11b688b3558a369c3a83dfd@i2pn2.org> <133582977f768d4a34f20a49513f0d2a4e013af2@i2pn2.org> <70ca21af3b6136ed6ebfa7dae7749a3a$1@octade.net> MIME-Version: 1.0 Injection-Date: Sun, 13 Oct 2024 08:01:29 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="1816925"; mail-complaints-to="usenet@i2pn2.org"; posting-account="ieSrCjSDShpZNyqIW52mlwIkg76Hsp+TOOO6KTdfCN8"; User-Agent: flnews/1.3.0pre11 (for GNU/Linux) Cancel-Lock: sha256:zjoQ5VUUp00r9WnZozP7KpLwW+QZIaBPmknR/WzIrjA= X-Date: It's Sun 11366 Sep 1993 10:01:05 AM CEST, the September that never ends X-Ed25519-Sig: aab0a10e959f3c49ca30e5eb18e2c6e8c9bdf5a8ef458d7103844d583c8bf0a2 a41b2b8391f38437d34027038ea24ab3bcef013804cd5b794bd6458b523c6b05 X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 4000 Lines: 86 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