Deutsch   English   Français   Italiano  
<2b2874b97d01c3c18231f11a124309dfc7564cee@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: XChaCha20 Python3 CLI tool
Date: Sun, 8 Sep 2024 19:03:11 -0000
Organization: Ch1ffr3punk5
Message-ID: <2b2874b97d01c3c18231f11a124309dfc7564cee@i2pn2.org>
References: <89f2389309ef1efcee726c83b77588c1556e289d@i2pn2.org> <7c14f2576f9ae75d449a68e666439db2fb38e7d0@i2pn2.org> <5bcab70e0e9baa3346bf2fd4b87c2b43f8ef9b37@i2pn2.org>
MIME-Version: 1.0
Injection-Date: Sun, 8 Sep 2024 19:03:33 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="1329806"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="ieSrCjSDShpZNyqIW52mlwIkg76Hsp+TOOO6KTdfCN8";
User-Agent: flnews/1.3.0pre11 (for GNU/Linux)
Cancel-Lock: sha256:LJcqjA63OhUMCpMnDwvSTOoFwdUvbsCMRhsgh9hGpzA=
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a
X-Date: It's Sun 11331 Sep 1993 09:03:11 PM CEST, the September that never ends
X-Ed25519-Sig: ab332ca6a314d5930b26befc862b5ed8c14f5c7bd2f3b0a8051b949f4e3498d5
 e74830cf38dcdfbfea7126b139e81924542749d14ddaa3f12d99e29e930e5b0e
X-Spam-Checker-Version: SpamAssassin 4.0.0
Bytes: 2054
Lines: 34

Stefan Claas wrote:
> Stefan Claas wrote:
> > Stefan Claas wrote:
> > > 
> > > 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.
> 
> Just for fun :-):
> 
> $ echo -n 'Test' | xchacha20 key nonce | armor
> -----BEGIN PGP MESSAGE-----
> 
> eQyt7Q==
> =yEnM
> -----END PGP MESSAGE-----
> 

And a padded SMS in two fiver groups, for easy and error
free typing and reading with a dumb phone. :-)

$ echo -n 'Test' | mp | xchacha20 key nonce2 | az | ug -g
Data successfully padded.
Original size: 4 bytes
Padded size: 5 bytes
OCMOM PCSKG

-- 
Regards
Stefan