Sujet : Re: XChaCha20 Python3 CLI tool
De : pc+usenet (at) *nospam* asdf.org (Phil Carmody)
Groupes : sci.cryptDate : 07. Oct 2024, 15:17:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87v7y4dmld.fsf@fatphil.org>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
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?
Phil
-- We are no longer hunters and nomads. No longer awed and frightened, as we havegained some understanding of the world in which we live. As such, we can castaside childish remnants from the dawn of our civilization.-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/