Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A fairly simple encryption algorithm...

30 views
Skip to first unread message

Chris M. Thomasson

unread,
Aug 8, 2018, 4:58:32 PM8/8/18
to
When you get some time to spare, and are interested, read all:

http://funwithfractals.atspace.cc/ct_cipher

and try this C and Python code for starters:

https://pastebin.com/raw/feUnA3kP
(C)

https://pastebin.com/raw/NAnsBJAZ
(Python Test Vector)

Now, notice in my crude little paper, it recommends using a TRNG! Well,
this experimental test code uses the damn rand() function in C. It
should be output from a TRNG. Anyway, here is the programs usage:

Usage:
__________________________
Usage: program in_file out_file mode_flag

mode_flag -e is encrypt where the in_file gets encrypted as out_file

mode_flag -d is decrypt where the in_file gets decrypted as out_file

Example:

program plaintext ciphertext -e
program ciphertext plaintext_decrypt -d
__________________________

Can you get it to work? Can you get the encrypt/decrypt cycle to work in C?

Thanks.

Chris M. Thomasson

unread,
Aug 8, 2018, 5:02:53 PM8/8/18
to
On 8/8/2018 1:58 PM, Chris M. Thomasson wrote:
> When you get some time to spare, and are interested, read all:
>
> http://funwithfractals.atspace.cc/ct_cipher
>
> and try this C and Python code for starters:
>
> https://pastebin.com/raw/feUnA3kP
> (C)
[...]
> Can you get it to work? Can you get the encrypt/decrypt cycle to work in C?

ARGH! I accidentally posted my C code to comp.lang.c++. Talk about
encryption: Sorry. I am posting it again in comp.lang.c:

https://groups.google.com/d/topic/comp.lang.c/a53VxN8cwkY/discussion



0 new messages