Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You have the body of a 19 year old. Please return it before it gets wrinkled.


sci / sci.crypt / Re: minicrypt

SubjectAuthor
* minicryptStefan Claas
`* Re: minicryptStefan Claas
 +* Re: minicryptStefan Claas
 |`- Re: minicryptStefan Claas
 `* Re: minicryptByrl Raze Buckbriar
  `- Re: minicryptStefan Claas

1
Subject: minicrypt
From: Stefan Claas
Newsgroups: sci.crypt
Organization: Ch1ffr3punk5
Date: Fri, 11 Oct 2024 00:44 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: minicrypt
Date: Fri, 11 Oct 2024 00:44:38 -0000
Organization: Ch1ffr3punk5
Message-ID: <cc024f782029f2a2b11b688b3558a369c3a83dfd@i2pn2.org>
MIME-Version: 1.0
Injection-Date: Fri, 11 Oct 2024 00:44:40 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1479452"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ieSrCjSDShpZNyqIW52mlwIkg76Hsp+TOOO6KTdfCN8";
User-Agent: flnews/1.3.0pre11 (for GNU/Linux)
Cancel-Lock: sha256:P8e6ssbsW5twL5zD0NHFGPPzQW22lDuSlsQ9/TFnNdg=
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Ed25519-Sig: 1de34b51ec92ba370cb05d4f8aa3b11f41b31591d169eb5616366c70c6a830e5
f46ccec7b86f94978c751f6a66438750761952dfbdbb1e45980699eda81c5d0b
X-Date: It's Fri 11364 Sep 1993 02:44:38 AM CEST, the September that never ends
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

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!

--
Regards
Stefan

Subject: Re: minicrypt
From: Stefan Claas
Newsgroups: sci.crypt
Organization: Ch1ffr3punk5
Date: Fri, 11 Oct 2024 15:49 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: minicrypt
Date: Fri, 11 Oct 2024 15:49:09 -0000
Organization: Ch1ffr3punk5
Message-ID: <133582977f768d4a34f20a49513f0d2a4e013af2@i2pn2.org>
References: <cc024f782029f2a2b11b688b3558a369c3a83dfd@i2pn2.org>
MIME-Version: 1.0
Injection-Date: Fri, 11 Oct 2024 15:49:11 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1572250"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ieSrCjSDShpZNyqIW52mlwIkg76Hsp+TOOO6KTdfCN8";
User-Agent: flnews/1.3.0pre11 (for GNU/Linux)
Cancel-Lock: sha256:uq9PlyqRW+COsgBm4TGOUieUZSP54paafv3If/m0wiA=
X-Ed25519-Sig: b89bc2628b149d336f339ef6b52c3925e920e66adeb956386e705ab9ca8ece21
a8a34debaa72e6bd47ce7101b735976befead71976110a732f9f1189562bd403
X-Date: It's Fri 11364 Sep 1993 05:49:09 PM CEST, the September that never ends
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

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

Subject: Re: minicrypt
From: Stefan Claas
Newsgroups: sci.crypt
Organization: Ch1ffr3punk5
Date: Sat, 12 Oct 2024 17:16 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: minicrypt
Date: Sat, 12 Oct 2024 17:16:46 -0000
Organization: Ch1ffr3punk5
Message-ID: <641b095ebb6123afc5f04ea1f0d8fc908d807004@i2pn2.org>
References: <cc024f782029f2a2b11b688b3558a369c3a83dfd@i2pn2.org> <133582977f768d4a34f20a49513f0d2a4e013af2@i2pn2.org>
MIME-Version: 1.0
Injection-Date: Sat, 12 Oct 2024 17:16:47 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1729597"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ieSrCjSDShpZNyqIW52mlwIkg76Hsp+TOOO6KTdfCN8";
User-Agent: flnews/1.3.0pre11 (for GNU/Linux)
Cancel-Lock: sha256:uhB0h0ZZFZkMXcKdFe0i2GeVLYVyxyWIRTy5bvvb/IE=
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Date: It's Sat 11365 Sep 1993 07:16:46 PM CEST, the September that never ends
X-Ed25519-Sig: b32b3865c2418fb51b998d557f4ac84f296411c8653d24b7f812450fd5d00ec8
c217c10ef7d9c7e12f65f39a7ba3ba6cbdb30c2e6e202057bf2c2e010f2d060d
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
View all headers

Stefan Claas wrote:
> Stefan Claas wrote:
> >
> > Hi all,
> >
> > a little program for encrypting messages with Ed25519
> > and XChaCha20#poly1305.
> >
> > https://github.com/706f6c6c7578/minicrypt

My pub key, save it as stefan.pem:

-----BEGIN PUBLIC KEY-----
tRxoeAmoI+0ygSbUYHBRpbYBDkC9+Q3rSTchzSXFHrU=
-----END PUBLIC KEY-----

--
Regards
Stefan

Subject: Re: minicrypt
From: Byrl Raze Buckbriar
Newsgroups: sci.crypt
Organization: OCTADE
Date: Sun, 13 Oct 2024 05:31 UTC
References: 1 2
Attachments: unnamed (application/pgp-signature)
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: news0@octade.net (Byrl Raze Buckbriar)
Newsgroups: sci.crypt
Subject: Re: minicrypt
Date: Sun, 13 Oct 2024 05:31:35 +0000
Organization: OCTADE
Message-ID: <70ca21af3b6136ed6ebfa7dae7749a3a$1@octade.net>
References: <cc024f782029f2a2b11b688b3558a369c3a83dfd@i2pn2.org>
<133582977f768d4a34f20a49513f0d2a4e013af2@i2pn2.org>
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature";
micalg="PGP-SHA256";
boundary="Signature=_Sun__13_Oct_2024_00_30_52_-0500_XNeXG9jC=mcK7NeX"
Injection-Info: i2pn2.org;
logging-data="1802246"; mail-complaints-to="usenet@i2pn2.org";
posting-account="OI6weT9bZt7saiRF3+XsJJTIMUPjpyh/q6ChV6DtztU";
User-Agent: OCTADE
X-Newsreader: OCTADE
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

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.

If Granny is going to use it, she needs a quick and simple solution.

Here is my guess on how to start:

$ go mod init minicrypt
$ go mod tidy

A build or makefile would be useful to Granny.

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.

--
Byrl Raze Buckbriar . OCTADE . < https://octade.net >
Hacker Hotline . voice & SMS . (781) OCT-AGON
KeyOxide . < https://keyoxide.org/keyoxide0@octade.net >

Attachments: unnamed (application/pgp-signature)
Subject: Re: minicrypt
From: Stefan Claas
Newsgroups: sci.crypt
Organization: Ch1ffr3punk5
Date: Sun, 13 Oct 2024 08:01 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: pollux@tilde.club (Stefan Claas)
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
View all headers

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

Subject: Re: minicrypt
From: Stefan Claas
Newsgroups: sci.crypt
Organization: Ch1ffr3punk5
Date: Wed, 16 Oct 2024 17:15 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: pollux@tilde.club (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: minicrypt
Date: Wed, 16 Oct 2024 17:15:34 -0000
Organization: Ch1ffr3punk5
Message-ID: <f0f7695d7fa1957e117441d96db3482f41837e2a@i2pn2.org>
References: <cc024f782029f2a2b11b688b3558a369c3a83dfd@i2pn2.org> <133582977f768d4a34f20a49513f0d2a4e013af2@i2pn2.org> <641b095ebb6123afc5f04ea1f0d8fc908d807004@i2pn2.org>
MIME-Version: 1.0
Injection-Date: Wed, 16 Oct 2024 17:15:36 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="2321389"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ieSrCjSDShpZNyqIW52mlwIkg76Hsp+TOOO6KTdfCN8";
User-Agent: flnews/1.3.0pre12 (for GNU/Linux)
Cancel-Lock: sha256:K04sM4islhbCvS8vuHq3HbbpTHDCsBdxCbUoFS24AUs=
X-Ed25519-Sig: 7f3173c8834c88aefdc035332d047d7c4276ae4b51522cc90cd16f5bfc116a16
de0091eb880fa5fc83cf5a8caf1c7c68df64ef1df33a3a8bbbd04370fa508204
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Date: It's Wed 11369 Sep 1993 07:15:34 PM CEST, the September that never ends
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
View all headers

Stefan Claas wrote:
> Stefan Claas wrote:
> > Stefan Claas wrote:
> > >
> > > Hi all,
> > >
> > > a little program for encrypting messages with Ed25519
> > > and XChaCha20#poly1305.
> > >
> > > https://github.com/706f6c6c7578/minicrypt
>
> My pub key, save it as stefan.pem:
>
> -----BEGIN PUBLIC KEY-----
> tRxoeAmoI+0ygSbUYHBRpbYBDkC9+Q3rSTchzSXFHrU=
> -----END PUBLIC KEY-----

Because my Usenet postings are usually signed with my Ed25519
'coffee' key, one can convert this key to PEM format, with my
hex2pem converter[1] and use this key instead, for encrypting
a message with minicrypt to me. :-)

Example:

$ echo -n 'c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a' | hex2pem -p > stefan.pem

$ echo -n 'Hello World' | minicrypt stefan.pem
UYBgAMy/eAgzkMXlwJ+JoXHwSwuwdBsSxYZHE5g/G3rAYlpEeaZU+bvSzhhk5l4t
hjayeDmalMYvLKDzP4PzOMEYw/XbG/2ru/CGdmGbOohUhlw=

[1] https://github.com/706f6c6c7578/hex2pem

--
Regards
Stefan

1

rocksolid light 0.9.8
clearnet tor