Deutsch   English   Français   Italiano  
<vm5rdj$3cl4n$1@paganini.bofh.team>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.tomockey.net!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: Stefan Claas <fgrsna.pynnf@vagrearg.eh>
Newsgroups: sci.crypt
Subject: Re: XChaCha20 Python3 CLI tool
Date: Tue, 14 Jan 2025 15:12:51 +0100
Organization: To protect and to server
Message-ID: <vm5rdj$3cl4n$1@paganini.bofh.team>
References: <89f2389309ef1efcee726c83b77588c1556e289d@i2pn2.org> <87v7y4dmld.fsf@fatphil.org> <df494c5bc2199a89f9302a99fe61478b9751c0db@i2pn2.org>
Mime-Version: 1.0
Injection-Date: Tue, 14 Jan 2025 14:13:07 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3560599"; posting-host="L/rT7uqiVZTQB03TSsYlcw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: flnews/1.3.0pre29 (for GNU/Linux)
Cancel-Lock: sha1:DBK1NTR1Wun6Z/h1VGO9t1LwDDg=
X-Date: It's Tue Sep 11459 03:12:51 PM CET 1993, the September that never ends.
X-Notice: Filtered by postfilter v. 0.9.3
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Ed25519-Sig: 9ebd396d4bc75d5674250bf376f185980c57ffca5ca16c5dff7b675984fe26d0
 a314ac7b2a0a524ad5fee011225f23d432ea1118fe9ec7d75b6dc904eed7030b
Bytes: 2958
Lines: 46

Stefan Claas wrote:
> Phil Carmody wrote:
> > Stefan Claas <pollux@tilde.club> writes:
> > > Hi all,
> > > 
> > > DJB's XChaCha20 stream cipher is pretty cool for Text messages (SMS),
> > > if you have also a proper encoder for the binary output.
> > > 
> > > So I decided to convert my Go Code to Python3.
> > > 
> > > Here is the program to play with, base64 encoded.
> > > 
> > > $ ./xchacha20.py
> > > Error: Incorrect number of arguments
> > > Usage: ./xchacha20.py <keyfile> <noncefile> < infile > outfile
> > > 
> > > XChaCha20 encryption/decryption tool
> > > 
> > > Arguments:
> > >   keyfile    Path to the file containing the key in hexadecimal format
> > >   noncefile  Path to the file containing the nonce in hexadecimal format
> > 
> > Why is the nonce in a file - are you planning on using it multiple
> > times?
> 
> I always use nonces from files and for each message a new one. I have
> my nonce rachtet program 'nora' which calculates them, without needing
> to transfer them.
> 
> https://github.com/706f6c6c7578/nora

xchacha20.go is updated, so that you can input the password and nonce
in the shell, with -p and -s parameter. I did this because now I have
also pwgen.go which uses the TPM 2.0 hardware TRNG.

This is pretty cool IMHO, becaue you generate the password for xchacha20.go
with pwgen.go, put it with Yubikey Authenticator on Slot 2 of your Yubikey
and friends Yubikeys and no longer need to type it in, because you simply
press the button. :-)

https://github.com/706f6c6c7578/xchacha20
https://github.com/706f6c6c7578/pwgen
https://www.yubico.com/products/yubico-authenticator/

-- 
Regards
Stefan