| Deutsch English Français Italiano |
|
<vl418a$2sv2k$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Rich <rich@example.invalid>
Newsgroups: sci.crypt
Subject: Re: Ternary Encoding :-)
Date: Wed, 1 Jan 2025 18:24:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <vl418a$2sv2k$1@dont-email.me>
References: <vl243l$3jkpe$1@paganini.bofh.team> <vl3q7v$3mbq0$1@paganini.bofh.team>
Injection-Date: Wed, 01 Jan 2025 19:24:11 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8c10bf53f7fd2c88970ece96e6e64bf0";
logging-data="3046484"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mzePn5rugy2jLQOpMwfzn"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:RSykGGUsxYQsjzRX2EovvySVuXo=
Bytes: 1979
Stefan Claas <pollux@tilde.club> wrote:
> Stefan Claas wrote:
>>
>> echo 'Happy News Year 2025' | ternary
>> 2112102022020111101010222211010022112012102120110020100021120220
>> 10000111010121200020221000211000220022020
>>
>> $ echo 'Happy News Year 2025' | ternary | ternary -d
>> Happy News Year 2025
>>
>> (My program works with binary data as well.)
>>
>
> The nice thing is we can like xor use ternary exclusive or (txor)
> to encrypt/decrypt messages. :-)
>
> $ echo 'Happy News Year 2025' | ternary > message.txt
> $ txor -k k-1.txt < message.txt > message_encrypted.txt
> $ txor -k k-1.txt -d < message_encrypted.txt > message_decrypted.txt
> $ ternary -d < message_decrypted.txt
> Happy News Year 2025
How does "ternary exclusive or" differ from the usual boolean xor?
Provided one can "xor" binary data, there's zero need for any odd
'encoding specific' xor operation. Just do a binary xor and be done.
Of course, this just brings to the front the OTP key distribution and
key reuse problems.