Sujet : Re: XChaCha20 Python3 CLI tool
De : pollux (at) *nospam* tilde.club (Stefan Claas)
Groupes : sci.cryptDate : 07. Oct 2024, 17:22:08
Autres entêtes
Organisation : Ch1ffr3punk5
Message-ID : <df494c5bc2199a89f9302a99fe61478b9751c0db@i2pn2.org>
References : 1 2
User-Agent : flnews/1.3.0pre11 (for GNU/Linux)
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-- RegardsStefan