Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

* joeyh installs debian using only his big toe, for a change of pace -- in #debian-boot


devel / sci.crypt / Using OTPs without straddling checkerboards, for International Languages

SubjectAuthor
* Using OTPs without straddling checkerboards, for InternationalStefan Claas
+* Using OTPs without straddling checkerboards, for InternationalGrant Taylor
|`* Using OTPs without straddling checkerboards, for InternationalStefan Claas
| `- Using OTPs without straddling checkerboards, for International LanguagesRich
+* Using OTPs without straddling checkerboards, for InternationalPeter Fairbrother
|+* Using OTPs without straddling checkerboards, for InternationalChris M. Thomasson
||`* Using OTPs without straddling checkerboards, for InternationalChris M. Thomasson
|| `* Using OTPs without straddling checkerboards, for InternationalStefan Claas
||  `* Using OTPs without straddling checkerboards, for International LanguagesRich
||   +* Using OTPs without straddling checkerboards, for InternationalStefan Claas
||   |`- Using OTPs without straddling checkerboards, for International LanguagesRich
||   `- Using OTPs without straddling checkerboards, for InternationalChris M. Thomasson
|`* Using OTPs without straddling checkerboards, for InternationalStefan Claas
| `* Using OTPs without straddling checkerboards, for InternationalPeter Fairbrother
|  `- Using OTPs without straddling checkerboards, for InternationalStefan Claas
`* Using OTPs without straddling checkerboards, for InternationalStefan Claas
 +* Using OTPs without straddling checkerboards, for InternationalStefan Claas
 |+* Using OTPs without straddling checkerboards, for InternationalChris M. Thomasson
 ||`- Using OTPs without straddling checkerboards, for InternationalStefan Claas
 |`* Using OTPs without straddling checkerboards, for InternationalStefan Claas
 | `- Using OTPs without straddling checkerboards, for InternationalStefan Claas
 `* Using OTPs without straddling checkerboards, for International LanguagesRich
  +- Using OTPs without straddling checkerboards, for InternationalPeter Fairbrother
  `- Using OTPs without straddling checkerboards, for InternationalStefan Claas

1
Using OTPs without straddling checkerboards, for International Languages

<ulckni$3q0oc$1@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=684&group=sci.crypt#684

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Using OTPs without straddling checkerboards, for International
Languages
Date: Wed, 13 Dec 2023 17:05:04 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulckni$3q0oc$1@i2pn2.org>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Dec 2023 16:05:06 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="3998476"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
 by: Stefan Claas - Wed, 13 Dec 2023 16:05 UTC

Hi all,

while playing with OTPs I thought that it would be nice
if foreign languages could be used as clear code.

I used 'Hello World.' in Chinese, converted it to hex
and then to decimal.

Here is the clear code:

11876 89806 73946 99030 57513
06009 70323 22

The pad:

68238 63972 92381 95246 41836
78127 58141 10064 13267 28473
12708 72549 92268 64828 08986
16748 83548 90223 98025 11923
00629 13164 30531 58883 04983
26340 01769 44902 11429 74915
93683 48677 01747 16699 49779
13120 31250 40235 50756 22868
43604 62434 04077 07160 97839
30798 93693 54202 26094 23219

The cipher text:

68238 74748 71187 68182 30866
25630 54140 80387 35

The modulo 10 addition starts at the second group,
while the first group in the cipher text is for the
pad used.

Hope you like the idea.

I know OTPs should be used with pencil and paper,
but when used on a secure offline computer, it might
be an option too.

Regards
Stefan
--
----Ed25519 Signature----
c642635988371708a9d7ed043857092a46654547a180fd669329d29e024379c3
dee3d91ef870c608b5fae5fa4d1274c6c0068fa739f18a89d95afa9e82f5c001

Re: Using OTPs without straddling checkerboards, for International Languages

<ulctss$dkl$2@tncsrv09.home.tnetconsulting.net>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=685&group=sci.crypt#685

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.198.18.1.140!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Wed, 13 Dec 2023 12:41:32 -0600
Organization: TNet Consulting
Message-ID: <ulctss$dkl$2@tncsrv09.home.tnetconsulting.net>
References: <ulckni$3q0oc$1@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Dec 2023 18:41:32 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="198.18.1.140";
logging-data="13973"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <ulckni$3q0oc$1@i2pn2.org>
 by: Grant Taylor - Wed, 13 Dec 2023 18:41 UTC

On 12/13/23 10:05, Stefan Claas wrote:
> I used 'Hello World.' in Chinese, converted it to hex
> and then to decimal.

I think the Achilles heal of your idea is using non-random text as the seed.

So I wouldn't consider it cryptographically strong. But I do see value
in things that aren't cryptographically strong. Sometimes all you
really need is something to keep miscreants out.

Grant. . . .

Re: Using OTPs without straddling checkerboards, for International Languages

<uld6ve$10nqp$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=686&group=sci.crypt#686

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: peter@tsto.co.uk (Peter Fairbrother)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Wed, 13 Dec 2023 21:16:28 +0000
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uld6ve$10nqp$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Dec 2023 21:16:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="76e4ffc9006774ac6a3e7785cdcb1f8c";
logging-data="1072985"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9ecjjhB7uiVrDcgK+xKyyCFQEvlYeDdY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:IyglH/18+FXTUWJfdF4634whK+0=
In-Reply-To: <ulckni$3q0oc$1@i2pn2.org>
Content-Language: en-GB
 by: Peter Fairbrother - Wed, 13 Dec 2023 21:16 UTC

On 13/12/2023 16:05, Stefan Claas wrote:

> I know OTPs should be used with pencil and paper,
> but when used on a secure offline computer, it might
> be an option too.

The late, and sadly missed, Len Sassaman used to distribute large
real-random OTPs on CDs and DVDs.

You could use them for anything you liked, but you had to write the code
first ... and then he had to write the decode ...

:)

Peter Fairbrother

Re: Using OTPs without straddling checkerboards, for International Languages

<uldau8$11car$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=687&group=sci.crypt#687

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Wed, 13 Dec 2023 14:24:07 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uldau8$11car$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <uld6ve$10nqp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Dec 2023 22:24:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c728c8a5e20b861dda10596491e3f784";
logging-data="1093979"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PKPmzVhXB674PlAiVf9gmWgOKvBy+pjI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Bp1PDOmaMVfX6RR6kQwuexYl2OA=
In-Reply-To: <uld6ve$10nqp$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Wed, 13 Dec 2023 22:24 UTC

On 12/13/2023 1:16 PM, Peter Fairbrother wrote:
> On 13/12/2023 16:05, Stefan Claas wrote:
>
>> I know OTPs should be used with pencil and paper,
>> but when used on a secure offline computer, it might
>> be an option too.
>
> The late, and sadly missed, Len Sassaman used to distribute large
> real-random OTPs on CDs and DVDs.
>
> You could use them for anything you liked, but you had to write the code
> first ... and then he had to write the decode ...
>
> :)

Indeed! ;^D

Re: Using OTPs without straddling checkerboards, for International Languages

<uldavl$11car$2@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=688&group=sci.crypt#688

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Wed, 13 Dec 2023 14:24:52 -0800
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uldavl$11car$2@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <uld6ve$10nqp$1@dont-email.me>
<uldau8$11car$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Dec 2023 22:24:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c728c8a5e20b861dda10596491e3f784";
logging-data="1093979"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fc+Pet0dAAi4d7JrkbYU33yIRgMSwTmM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BixGvFlYEo9HTxuzFOQ4VOlcOOw=
Content-Language: en-US
In-Reply-To: <uldau8$11car$1@dont-email.me>
 by: Chris M. Thomasson - Wed, 13 Dec 2023 22:24 UTC

On 12/13/2023 2:24 PM, Chris M. Thomasson wrote:
> On 12/13/2023 1:16 PM, Peter Fairbrother wrote:
>> On 13/12/2023 16:05, Stefan Claas wrote:
>>
>>> I know OTPs should be used with pencil and paper,
>>> but when used on a secure offline computer, it might
>>> be an option too.
>>
>> The late, and sadly missed, Len Sassaman used to distribute large
>> real-random OTPs on CDs and DVDs.
>>
>> You could use them for anything you liked, but you had to write the
>> code first ... and then he had to write the decode ...
>>
>> :)
>
> Indeed! ;^D
>

I have some random numbers for ya. I swear I never looked at them...
Cough...

Re: Using OTPs without straddling checkerboards, for International Languages

<ulehf2$3s8kh$1@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=689&group=sci.crypt#689

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Thu, 14 Dec 2023 10:21:37 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulehf2$3s8kh$1@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<ulctss$dkl$2@tncsrv09.home.tnetconsulting.net>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Dec 2023 09:21:38 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="4072081"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
 by: Stefan Claas - Thu, 14 Dec 2023 09:21 UTC

Grant Taylor wrote:

> On 12/13/23 10:05, Stefan Claas wrote:
> > I used 'Hello World.' in Chinese, converted it to hex
> > and then to decimal.
>
> I think the Achilles heal of your idea is using non-random text as
> the seed.
>
> So I wouldn't consider it cryptographically strong. But I do see
> value in things that aren't cryptographically strong. Sometimes all
> you really need is something to keep miscreants out.

The Chinese text is the clear code, which then gets encrypted, with the
pad (created from random numbers, with Golang's crypto/rand)

If this is carried out on an offline computer (shielded[1]) this should
be ok, I guess.

To create real random numbers, I was thinking to 3D print a 'violin'[2]

[1] <https://www.youtube.com/watch?v=d8HvGvOT6Pg>
[2]
<https://scienceblogs.de/klausis-krypto-kolumne/2016/11/16/how-a-crypto-mystery-from-the-cold-war-was-solved-or-was-it/>

Regards
Stefan
--
----Ed25519 Signature----
2dbdf2ff533b4082456d23dd96b2d102de86cf23a997e1e35d67f75500673be5
a75a4a3eee9dd7061b6821ad187539a9ae71533ce1f3fd1cf1854e5196e9fc03

Re: Using OTPs without straddling checkerboards, for International Languages

<ulehmi$3s8kh$2@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=690&group=sci.crypt#690

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Thu, 14 Dec 2023 10:25:37 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulehmi$3s8kh$2@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<uld6ve$10nqp$1@dont-email.me>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Dec 2023 09:25:38 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="4072081"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
 by: Stefan Claas - Thu, 14 Dec 2023 09:25 UTC

Peter Fairbrother wrote:

> On 13/12/2023 16:05, Stefan Claas wrote:
>
> > I know OTPs should be used with pencil and paper,
> > but when used on a secure offline computer, it might
> > be an option too.
>
> The late, and sadly missed, Len Sassaman used to distribute large
> real-random OTPs on CDs and DVDs.

You write 'real'. Do you know how he did that, like getting random data
from random.org, or an hardware device?
>
> You could use them for anything you liked, but you had to write the
> code first ... and then he had to write the decode ...
>
> :)

I already created software for OTP usage, in Golang. :-)

Regards
Stefan
--
----Ed25519 Signature----
3cc534c1965b893695bfccde59051914efe8269518862638ec3d2a925444e9f3
ee1c0306a37cc73a5e3645ac14e9e65a004ee32c809259ade48156e7a261bb03

Re: Using OTPs without straddling checkerboards, for International Languages

<ulehu6$3s8kh$3@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=691&group=sci.crypt#691

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Thu, 14 Dec 2023 10:29:41 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulehu6$3s8kh$3@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<uld6ve$10nqp$1@dont-email.me>
<uldau8$11car$1@dont-email.me>
<uldavl$11car$2@dont-email.me>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Dec 2023 09:29:42 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="4072081"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
 by: Stefan Claas - Thu, 14 Dec 2023 09:29 UTC

Chris M. Thomasson wrote:

> On 12/13/2023 2:24 PM, Chris M. Thomasson wrote:
> > On 12/13/2023 1:16 PM, Peter Fairbrother wrote:
> >> On 13/12/2023 16:05, Stefan Claas wrote:
> >>
> >>> I know OTPs should be used with pencil and paper,
> >>> but when used on a secure offline computer, it might
> >>> be an option too.
> >>
> >> The late, and sadly missed, Len Sassaman used to distribute large
> >> real-random OTPs on CDs and DVDs.
> >>
> >> You could use them for anything you liked, but you had to write
> >> the code first ... and then he had to write the decode ...
> >>
> >> :)
> >
> > Indeed! ;^D
> >
>
> I have some random numbers for ya. I swear I never looked at them...
> Cough...

He he. And I have the software to create random pads. You can look
at the source code. It uses Golang's crypto/rand, to create the numbers
or letters.

https://github.com/stefanclaas/pads

Regards
Stefan
--
----Ed25519 Signature----
8d891486fe5ef962e1363d76d2a65fb4f9821b95fe0e8c01b9ea617aabc0b804
9b52ec7cccd63947a03aa491e9152632f7e0aaac57c12dcf28aa6e23143f750a

Re: Using OTPs without straddling checkerboards, for International Languages

<ulf4l3$1e15a$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=693&group=sci.crypt#693

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: peter@tsto.co.uk (Peter Fairbrother)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Thu, 14 Dec 2023 14:49:06 +0000
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ulf4l3$1e15a$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <uld6ve$10nqp$1@dont-email.me>
<ulehmi$3s8kh$2@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Dec 2023 14:49:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c2c22dc04ecb98a0f7965d9ae9e58547";
logging-data="1508522"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1VqBpw5Sc7Du3heLBlFicM9mB3DvCYL8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:UfpFi6HiI79ws0Rcr/wmgnKz1Hc=
Content-Language: en-GB
In-Reply-To: <ulehmi$3s8kh$2@i2pn2.org>
 by: Peter Fairbrother - Thu, 14 Dec 2023 14:49 UTC

On 14/12/2023 09:25, Stefan Claas wrote:
> Peter Fairbrother wrote:
>
>> On 13/12/2023 16:05, Stefan Claas wrote:
>>
>>> I know OTPs should be used with pencil and paper,
>>> but when used on a secure offline computer, it might
>>> be an option too.
>>
>> The late, and sadly missed, Len Sassaman used to distribute large
>> real-random OTPs on CDs and DVDs.
>
> You write 'real'. Do you know how he did that, like getting random data
> from random.org, or an hardware device?

He did tell me, but I can't remember exactly.

Len was a pretty good cryptographer though, and I remember thinking at
the time that he had done it right - which would probably mean something
hardware and quantum noisy.

[they were in pairs, he kept one copy and the recipient got the other.
only good for talking to Len]

Peter F

Re: Using OTPs without straddling checkerboards, for International Languages

<ulf7am$3t34g$1@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=694&group=sci.crypt#694

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Thu, 14 Dec 2023 16:34:46 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulf7am$3t34g$1@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<uld6ve$10nqp$1@dont-email.me>
<ulehmi$3s8kh$2@i2pn2.org>
<ulf4l3$1e15a$1@dont-email.me>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Dec 2023 15:34:47 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="4099216"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
 by: Stefan Claas - Thu, 14 Dec 2023 15:34 UTC

Peter Fairbrother wrote:

> On 14/12/2023 09:25, Stefan Claas wrote:
> > Peter Fairbrother wrote:
> >
> >> On 13/12/2023 16:05, Stefan Claas wrote:
> >>
> >>> I know OTPs should be used with pencil and paper,
> >>> but when used on a secure offline computer, it might
> >>> be an option too.
> >>
> >> The late, and sadly missed, Len Sassaman used to distribute large
> >> real-random OTPs on CDs and DVDs.
> >
> > You write 'real'. Do you know how he did that, like getting random
> > data from random.org, or an hardware device?
>
> He did tell me, but I can't remember exactly.
>
> Len was a pretty good cryptographer though, and I remember thinking
> at the time that he had done it right - which would probably mean
> something hardware and quantum noisy.
>
> [they were in pairs, he kept one copy and the recipient got the
> other. only good for talking to Len]

Ah, ok. Thanks for the info, much appreciated.

Regards
Stefan
--
----Ed25519 Signature----
f06435973fc9eaa771fe4ba09f7564056a3b5566a776d9b599585c5f0a2ea79a
b3c83e8599c0c40c2580333d0fb8764225cd6cabdd4d7f9d807b560bd00d4305

Re: Using OTPs without straddling checkerboards, for International Languages

<ulfbnr$1f66k$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=695&group=sci.crypt#695

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International Languages
Date: Thu, 14 Dec 2023 16:50:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ulfbnr$1f66k$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <ulctss$dkl$2@tncsrv09.home.tnetconsulting.net> <ulehf2$3s8kh$1@i2pn2.org>
Injection-Date: Thu, 14 Dec 2023 16:50:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f2a81f25cd8aaea293c2a95014aa0118";
logging-data="1546452"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dDMcbqwFOrCp7flK8j4UQ"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:mlncJEoW3bWeAOVc3k4ihwO5sMU=
 by: Rich - Thu, 14 Dec 2023 16:50 UTC

Stefan Claas <stefan.claas@iris.to> wrote:
> Grant Taylor wrote:
>
>> On 12/13/23 10:05, Stefan Claas wrote:
>> > I used 'Hello World.' in Chinese, converted it to hex
>> > and then to decimal.
>>
>> I think the Achilles heal of your idea is using non-random text as
>> the seed.
>>
>> So I wouldn't consider it cryptographically strong. But I do see
>> value in things that aren't cryptographically strong. Sometimes all
>> you really need is something to keep miscreants out.
>
> The Chinese text is the clear code, which then gets encrypted, with the
> pad (created from random numbers, with Golang's crypto/rand)

In which case it is likely created from "psudeo-random numbers",
depending upon how Golang's crypto/rand is implemented.

> If this is carried out on an offline computer (shielded[1]) this should
> be ok, I guess.

Depends upon who you are defending against. Against your noisy
neighbor who is not a cryptographer, this is likely more than enough.
Against the NSA, it may not be enough.

Re: Using OTPs without straddling checkerboards, for International Languages

<ulfbpi$1f66k$2@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=696&group=sci.crypt#696

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!news.chmurka.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International Languages
Date: Thu, 14 Dec 2023 16:50:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ulfbpi$1f66k$2@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <uld6ve$10nqp$1@dont-email.me> <uldau8$11car$1@dont-email.me> <uldavl$11car$2@dont-email.me> <ulehu6$3s8kh$3@i2pn2.org>
Injection-Date: Thu, 14 Dec 2023 16:50:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f2a81f25cd8aaea293c2a95014aa0118";
logging-data="1546452"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hV8kdQnvsXHlciWv9+tTm"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:oNAAfWj6vrP2oSsHyMNf2IXKJaM=
 by: Rich - Thu, 14 Dec 2023 16:50 UTC

Stefan Claas <stefan.claas@iris.to> wrote:
> Chris M. Thomasson wrote:
>> I have some random numbers for ya. I swear I never looked at
>> them... Cough...
>
> He he. And I have the software to create random pads. You can look
> at the source code. It uses Golang's crypto/rand, to create the
> numbers or letters.

What is the implementation of 'crypto/rand'?

Re: Using OTPs without straddling checkerboards, for International Languages

<ulfd5i$3tauk$1@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=697&group=sci.crypt#697

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Thu, 14 Dec 2023 18:14:25 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulfd5i$3tauk$1@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<uld6ve$10nqp$1@dont-email.me>
<uldau8$11car$1@dont-email.me>
<uldavl$11car$2@dont-email.me>
<ulehu6$3s8kh$3@i2pn2.org>
<ulfbpi$1f66k$2@dont-email.me>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Dec 2023 17:14:26 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="4107220"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
 by: Stefan Claas - Thu, 14 Dec 2023 17:14 UTC

Rich wrote:

> Stefan Claas <stefan.claas@iris.to> wrote:
> > Chris M. Thomasson wrote:
> >> I have some random numbers for ya. I swear I never looked at
> >> them... Cough...
> >
> > He he. And I have the software to create random pads. You can
> > look at the source code. It uses Golang's crypto/rand, to create
> > the numbers or letters.
>
> What is the implementation of 'crypto/rand'?

Please have a look:

https://pkg.go.dev/crypto/rand

Regards
Stefan
--
----Ed25519 Signature----
8b33b0df45eb883e597b74893f09130148a6aec955be659751919219386c260f
54033f8bb0a99c686f38e46dce728ab18dc2d476c3c41f02820129f859bc1e0c

Re: Using OTPs without straddling checkerboards, for International Languages

<ulfs6t$1hv72$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=698&group=sci.crypt#698

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International Languages
Date: Thu, 14 Dec 2023 21:31:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ulfs6t$1hv72$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <uld6ve$10nqp$1@dont-email.me> <uldau8$11car$1@dont-email.me> <uldavl$11car$2@dont-email.me> <ulehu6$3s8kh$3@i2pn2.org> <ulfbpi$1f66k$2@dont-email.me> <ulfd5i$3tauk$1@i2pn2.org>
Injection-Date: Thu, 14 Dec 2023 21:31:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f2a81f25cd8aaea293c2a95014aa0118";
logging-data="1637602"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+N1Dgff9/MqUabvlmseEq3"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:ZlpsDWQkVyYuUy2gkuSQiX1M8Z4=
 by: Rich - Thu, 14 Dec 2023 21:31 UTC

Stefan Claas <stefan.claas@iris.to> wrote:
> Rich wrote:
>
>> Stefan Claas <stefan.claas@iris.to> wrote:
>> > Chris M. Thomasson wrote:
>> >> I have some random numbers for ya. I swear I never looked at
>> >> them... Cough...
>> >
>> > He he. And I have the software to create random pads. You can
>> > look at the source code. It uses Golang's crypto/rand, to create
>> > the numbers or letters.
>>
>> What is the implementation of 'crypto/rand'?
>
> Please have a look:
>
> https://pkg.go.dev/crypto/rand

The docs say this:

On Linux, FreeBSD, Dragonfly, NetBSD and Solaris, Reader uses
getrandom(2) if available, /dev/urandom otherwise. On OpenBSD and
macOS, Reader uses getentropy(2). On other Unix-like systems,
Reader reads from /dev/urandom. On Windows systems, Reader uses
the ProcessPrng API. On JS/Wasm, Reader uses the Web Crypto API.
On WASIP1/Wasm, Reader uses random_get from wasi_snapshot_preview1.

So it is not just a chosen psudeo-random number generator algorithm,
but is using the various kernel's randomness generation facilities.

Re: Using OTPs without straddling checkerboards, for International Languages

<ulggvm$1oc9k$7@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=699&group=sci.crypt#699

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Thu, 14 Dec 2023 19:25:41 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ulggvm$1oc9k$7@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <uld6ve$10nqp$1@dont-email.me>
<uldau8$11car$1@dont-email.me> <uldavl$11car$2@dont-email.me>
<ulehu6$3s8kh$3@i2pn2.org> <ulfbpi$1f66k$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Dec 2023 03:25:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="513d149cab1ad625e0aa2a5d5251a9a6";
logging-data="1847604"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+315XJtLzUd1CjlgHIPvgalEJFOc1LDXs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nA4iKxrPregXi9+j9NF/9sFkUjw=
In-Reply-To: <ulfbpi$1f66k$2@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Fri, 15 Dec 2023 03:25 UTC

On 12/14/2023 8:50 AM, Rich wrote:
> Stefan Claas <stefan.claas@iris.to> wrote:
>> Chris M. Thomasson wrote:
>>> I have some random numbers for ya. I swear I never looked at
>>> them... Cough...
>>
>> He he. And I have the software to create random pads. You can look
>> at the source code. It uses Golang's crypto/rand, to create the
>> numbers or letters.
>
> What is the implementation of 'crypto/rand'?

I hope its not something akin to this damn thing!

https://groups.google.com/g/comp.lang.c++/c/7u_rLgQe86k/m/fYU9SnuAFQAJ

;^o

Re: Using OTPs without straddling checkerboards, for International Languages

<ulhsri$bbl$1@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=700&group=sci.crypt#700

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Fri, 15 Dec 2023 16:54:26 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulhsri$bbl$1@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Dec 2023 15:54:26 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="11637"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
 by: Stefan Claas - Fri, 15 Dec 2023 15:54 UTC

Stefan Claas wrote:

> The cipher text:
>
> 68238 74748 71187 68182 30866
> 25630 54140 80387 35

The nice thing about digits is, that you can convert them to images. :-)
My humble approach uses ten colors for the digits 0-9 and each colored
square is 8x8 pixels in size.

I created a little program, which takes a long integer string, without
spaces, and creates a .png file of it. The image size is 320 pixels,
for width and depending on the message size the height varies.

The above cipher text looks like this:

https://postimg.cc/CZxYfPd9

Regards
Stefan
--
----Ed25519 Signature----
88649b111e156896afdbf8d7d66c72bb3479a3896f6f696a1258e108369845d8
519ff092a18a9b1f5722d28ea3be6d74f1d64824def689980d95f0da588ffc0b

Re: Using OTPs without straddling checkerboards, for International Languages

<ulkm6o$3rsm$1@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=701&group=sci.crypt#701

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Sat, 16 Dec 2023 18:19:18 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulkm6o$3rsm$1@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<ulhsri$bbl$1@i2pn2.org>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Dec 2023 17:19:20 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="126870"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
 by: Stefan Claas - Sat, 16 Dec 2023 17:19 UTC

Stefan Claas wrote:

> Stefan Claas wrote:
>
> > The cipher text:
> >
> > 68238 74748 71187 68182 30866
> > 25630 54140 80387 35
>
> The nice thing about digits is, that you can convert them to images.
> :-) My humble approach uses ten colors for the digits 0-9 and each
> colored square is 8x8 pixels in size.
>
> I created a little program, which takes a long integer string, without
> spaces, and creates a .png file of it. The image size is 320 pixels,
> for width and depending on the message size the height varies.
>
> The above cipher text looks like this:
>
> https://postimg.cc/CZxYfPd9

Forgot to mention, you can of course decode the image back to its
original content. https://github.com/stefanclaas/d2i

Maybe something for you Chris, to look at, because you do computer
graphics programming. ;-)

Regards
Stefan
--
----Ed25519 Signature----
76c5ee0184b8a94ba6c0a6d14aef3df86a3c838cdfb5e8a551092bf0c92a22c3
098d11ba4029e8bc75e193d00e4476e784a02f6321504a8896753a45ae39610e

Re: Using OTPs without straddling checkerboards, for International Languages

<ullh1i$2k2km$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=702&group=sci.crypt#702

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Sat, 16 Dec 2023 16:57:22 -0800
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <ullh1i$2k2km$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <ulhsri$bbl$1@i2pn2.org>
<ulkm6o$3rsm$1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Dec 2023 00:57:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7dcea355c22f1533bc3a8f39b9e5a9f5";
logging-data="2755222"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k3qPovQOKeAzf+HfWt/A26jGZ0iJIEDg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rVSSXzib8Z0FjuEpJnPuutF3UQM=
In-Reply-To: <ulkm6o$3rsm$1@i2pn2.org>
Content-Language: en-US
 by: Chris M. Thomasson - Sun, 17 Dec 2023 00:57 UTC

On 12/16/2023 9:19 AM, Stefan Claas wrote:
> Stefan Claas wrote:
>
>> Stefan Claas wrote:
>>
>>> The cipher text:
>>>
>>> 68238 74748 71187 68182 30866
>>> 25630 54140 80387 35
>>
>> The nice thing about digits is, that you can convert them to images.
>> :-) My humble approach uses ten colors for the digits 0-9 and each
>> colored square is 8x8 pixels in size.
>>
>> I created a little program, which takes a long integer string, without
>> spaces, and creates a .png file of it. The image size is 320 pixels,
>> for width and depending on the message size the height varies.
>>
>> The above cipher text looks like this:
>>
>> https://postimg.cc/CZxYfPd9
>
> Forgot to mention, you can of course decode the image back to its
> original content. https://github.com/stefanclaas/d2i
>
> Maybe something for you Chris, to look at, because you do computer
> graphics programming. ;-)

I need to find an old post of mine here. Basically it would use a single
color channel to encode bytes, dead simple. It would simply map a byte
into a color. The fun part was to try to hide a fractal in the noise and
see if anybody could visually notice it.

So, all bytes could be shades of red, ect... It could be decoded by
reading the bytes. If the image was compressed, well, these bytes no
longer worked! Take notice of the little thumbnail image this creates:

http://funwithfractals.atspace.cc/ffe

Hit the encryption button over and over again and notice how the
thumbnail changes. This is just fun to me.

Re: Using OTPs without straddling checkerboards, for International Languages

<ulm1or$2q25g$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=703&group=sci.crypt#703

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International Languages
Date: Sun, 17 Dec 2023 05:42:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <ulm1or$2q25g$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <ulhsri$bbl$1@i2pn2.org>
Injection-Date: Sun, 17 Dec 2023 05:42:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="db195945711d16cd1f2981a46eb81876";
logging-data="2951344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NQkpQAHevQ1pQbXxvNQpa"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:1ubxy5Lb4bo/M0S1sEJzdT2ZCI0=
 by: Rich - Sun, 17 Dec 2023 05:42 UTC

Stefan Claas <stefan.claas@iris.to> wrote:
> Stefan Claas wrote:
>
>> The cipher text:
>>
>> 68238 74748 71187 68182 30866
>> 25630 54140 80387 35
>
> The nice thing about digits is, that you can convert them to images. :-)
> My humble approach uses ten colors for the digits 0-9 and each colored
> square is 8x8 pixels in size.

You don't need "digits" to encode things to images. Provided you are
not using a lossy compression algorithm then you can just insert any
old binary data in as the pixels, and get it back later just as you put
it in.

The resulting 'image' will look like random noise when viewed as an
image.

If you want larger "color blocks" (for ease of decoding by scanning or
for resistance to 'lossy' compression algorithms) then you just need to
pick a set of colors (if you pick powers of two sized sets it makes
things easer). So you pick sixteen colors, then every four bits of
your binary data determines which of your sixteen colors is used for
the next "large block" and you just output the proper image bytes to
make the large block.

Re: Using OTPs without straddling checkerboards, for International Languages

<ulmmaq$2tlhr$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=704&group=sci.crypt#704

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: peter@tsto.co.uk (Peter Fairbrother)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Sun, 17 Dec 2023 11:33:46 +0000
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <ulmmaq$2tlhr$1@dont-email.me>
References: <ulckni$3q0oc$1@i2pn2.org> <ulhsri$bbl$1@i2pn2.org>
<ulm1or$2q25g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Dec 2023 11:33:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7fcb5969a4decc77d4186d3e95d66b5b";
logging-data="3069499"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/l/NbLhSZfOiQT0V280f2Aqjx4UhxuVEg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:3Y8BNjM55+piQNe2wP/fZVYNViU=
In-Reply-To: <ulm1or$2q25g$1@dont-email.me>
Content-Language: en-GB
 by: Peter Fairbrother - Sun, 17 Dec 2023 11:33 UTC

On 17/12/2023 05:42, Rich wrote:
> Stefan Claas <stefan.claas@iris.to> wrote:
>> Stefan Claas wrote:
>>
>>> The cipher text:
>>>
>>> 68238 74748 71187 68182 30866
>>> 25630 54140 80387 35
>>
>> The nice thing about digits is, that you can convert them to images. :-)
>> My humble approach uses ten colors for the digits 0-9 and each colored
>> square is 8x8 pixels in size.
>
> You don't need "digits" to encode things to images. Provided you are
> not using a lossy compression algorithm then you can just insert any
> old binary data in as the pixels, and get it back later just as you put
> it in.
>
> The resulting 'image' will look like random noise when viewed as an
> image.
>
> If you want larger "color blocks" (for ease of decoding by scanning or
> for resistance to 'lossy' compression algorithms) then you just need to
> pick a set of colors (if you pick powers of two sized sets it makes
> things easer). So you pick sixteen colors, then every four bits of
> your binary data determines which of your sixteen colors is used for
> the next "large block" and you just output the proper image bytes to
> make the large block.
>

Or just encode a .jpeg

Peter F

Re: Using OTPs without straddling checkerboards, for International Languages

<ulmpqh$6bso$1@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=705&group=sci.crypt#705

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Sun, 17 Dec 2023 13:33:21 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulmpqh$6bso$1@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<ulhsri$bbl$1@i2pn2.org>
<ulkm6o$3rsm$1@i2pn2.org>
<ullh1i$2k2km$1@dont-email.me>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Dec 2023 12:33:21 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="208792"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
 by: Stefan Claas - Sun, 17 Dec 2023 12:33 UTC

Chris M. Thomasson wrote:

> On 12/16/2023 9:19 AM, Stefan Claas wrote:

> > Maybe something for you Chris, to look at, because you do computer
> > graphics programming. ;-)
>
> I need to find an old post of mine here. Basically it would use a
> single color channel to encode bytes, dead simple. It would simply
> map a byte into a color. The fun part was to try to hide a fractal in
> the noise and see if anybody could visually notice it.

Nice, I would like to try that out. :-)
> So, all bytes could be shades of red, ect... It could be decoded by
> reading the bytes. If the image was compressed, well, these bytes no
> longer worked! Take notice of the little thumbnail image this creates:
>
> http://funwithfractals.atspace.cc/ffe
>
> Hit the encryption button over and over again and notice how the
> thumbnail changes. This is just fun to me.

Yes, I remember this program. Really nice!

Regards
Stefan
--
----Ed25519 Signature----
725a3bf20c1b7d3137d8b3faa8985a19886bf44f0ecd7e3d3726a7c5cc682f89
a146f52610cf13c3a6b36fa42bc77416d32c41e7188e60d51695b3455c55a309

Re: Using OTPs without straddling checkerboards, for International Languages

<ulmq2h$6bso$2@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=706&group=sci.crypt#706

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Sun, 17 Dec 2023 13:37:37 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <ulmq2h$6bso$2@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<ulhsri$bbl$1@i2pn2.org>
<ulm1or$2q25g$1@dont-email.me>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Dec 2023 12:37:37 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="208792"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
 by: Stefan Claas - Sun, 17 Dec 2023 12:37 UTC

Rich wrote:

> Stefan Claas <stefan.claas@iris.to> wrote:
> > Stefan Claas wrote:
> >
> >> The cipher text:
> >>
> >> 68238 74748 71187 68182 30866
> >> 25630 54140 80387 35
> >
> > The nice thing about digits is, that you can convert them to
> > images. :-) My humble approach uses ten colors for the digits 0-9
> > and each colored square is 8x8 pixels in size.
>
> You don't need "digits" to encode things to images. Provided you are
> not using a lossy compression algorithm then you can just insert any
> old binary data in as the pixels, and get it back later just as you
> put it in.
>
> The resulting 'image' will look like random noise when viewed as an
> image.

I have such a program (file2png, from GitHub).

> If you want larger "color blocks" (for ease of decoding by scanning
> or for resistance to 'lossy' compression algorithms) then you just
> need to pick a set of colors (if you pick powers of two sized sets it
> makes things easer). So you pick sixteen colors, then every four
> bits of your binary data determines which of your sixteen colors is
> used for the next "large block" and you just output the proper image
> bytes to make the large block.

Thanks for the suggestion. I may look into this. The reason why I
created my version, of an encoder/decoder was, to easily convert
OTP messages, consisting of digits and with a nice color scheme.

Regards
Stefan
--
----Ed25519 Signature----
1394d28ec5c950e1ef51115c990945635c4532849600062a2ca2bf4dcc73eb5b
b2019098e86217d0593fd9e187f8e9735133a634e23241202eb2ee05ab1f0909

Re: Using OTPs without straddling checkerboards, for International Languages

<um9va4$vdg4$2@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=714&group=sci.crypt#714

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Sun, 24 Dec 2023 20:03:31 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <um9va4$vdg4$2@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<ulhsri$bbl$1@i2pn2.org>
<ulkm6o$3rsm$1@i2pn2.org>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 19:03:32 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1029636"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
 by: Stefan Claas - Sun, 24 Dec 2023 19:03 UTC

Stefan Claas wrote:

> Stefan Claas wrote:
>
> > Stefan Claas wrote:
> >
> > > The cipher text:
> > >
> > > 68238 74748 71187 68182 30866
> > > 25630 54140 80387 35
> >
> > The nice thing about digits is, that you can convert them to images.
> > :-) My humble approach uses ten colors for the digits 0-9 and each
> > colored square is 8x8 pixels in size.
> >
> > I created a little program, which takes a long integer string,
> > without spaces, and creates a .png file of it. The image size is
> > 320 pixels, for width and depending on the message size the height
> > varies.
> >
> > The above cipher text looks like this:
> >
> > https://postimg.cc/CZxYfPd9
>
> Forgot to mention, you can of course decode the image back to its
> original content. https://github.com/stefanclaas/d2i
>
> Maybe something for you Chris, to look at, because you do computer
> graphics programming. ;-)

Here is a C version. Must be compiled with lodepng.c and lodepng.h
https://lodev.org/lodepng/

// d2i - decimal to image. Converts a long decimal string to .png image

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "lodepng.h"

#define BLOCK_WIDTH 8
#define MAX_IMAGE_WIDTH 320

typedef struct {
uint8_t r, g, b, a;
} RGBA;

// Define the colors for the numbers 0-9.
const RGBA colors[] = {
{230, 25, 75, 255}, // 0: Red
{245, 130, 49, 255}, // 1: Orange
{255, 225, 25, 255}, // 2: Yellow
{191, 239, 69, 255}, // 3: Lime
{60, 180, 75, 255}, // 4: Green
{66, 212, 244, 255}, // 5: Cyan
{67, 99, 216, 255}, // 6: Blue
{145, 30, 180, 255}, // 7: Purple
{240, 50, 230, 255}, // 8: Magenta
{169, 160, 169, 255} // 9: Grey
};

void encode(const char *filename) {
// Read the number string from the standard input.
char numbers[MAX_IMAGE_WIDTH * BLOCK_WIDTH];
fgets(numbers, sizeof(numbers), stdin);
numbers[strcspn(numbers, "\n")] = '\0'; // Remove the newline
character.

// Calculate the number of rows needed.
int numRows = (strlen(numbers) * BLOCK_WIDTH + MAX_IMAGE_WIDTH - 1)
/ MAX_IMAGE_WIDTH;

// Create a new image.
RGBA *img = (RGBA *)malloc(MAX_IMAGE_WIDTH * numRows * BLOCK_WIDTH
* sizeof(RGBA));

// Fill the image with the corresponding colors.
for (int i = 0; i < strlen(numbers); i++) {
// Convert the number to a color.
int n = numbers[i] - '0';
for (int x = (i % (MAX_IMAGE_WIDTH / BLOCK_WIDTH)) *
BLOCK_WIDTH; x < (i % (MAX_IMAGE_WIDTH / BLOCK_WIDTH) + 1) *
BLOCK_WIDTH; x++) { for (int y = (i / (MAX_IMAGE_WIDTH /
BLOCK_WIDTH)) * BLOCK_WIDTH; y < ((i / (MAX_IMAGE_WIDTH /
BLOCK_WIDTH)) + 1) * BLOCK_WIDTH; y++) { img[x + y *
MAX_IMAGE_WIDTH] = colors[n]; } } }

// Save the image as a .png file using lodepng.
if (lodepng_encode32_file(filename, (unsigned char *)img,
MAX_IMAGE_WIDTH, numRows * BLOCK_WIDTH) != 0) { fprintf(stderr,
"Error writing PNG file\n"); exit(EXIT_FAILURE);
}

free(img);
}

void decode(const char *filename) {
// Open the .png file.
unsigned char *imgIn;
size_t width, height;
if (lodepng_decode32_file(&imgIn, &width, &height, filename) != 0) {
fprintf(stderr, "Error opening or decoding image file\n");
exit(EXIT_FAILURE);
}

// Decode the colors back into numbers and print in a single line.
for (size_t y = 0; y < height; y += BLOCK_WIDTH) {
for (size_t x = 0; x < width; x += BLOCK_WIDTH) {
RGBA c = *((RGBA *)(imgIn + 4 * (x + y * width)));
for (size_t j = 0; j < sizeof(colors) / sizeof(colors[0]);
j++) { if (c.r == colors[j].r && c.g == colors[j].g && c.b ==
colors[j].b) { printf("%lu", j);
break;
}
}
}
}

// Add a newline at the end to separate the prompt.
printf("\n");

free(imgIn);
}

int main(int argc, char *argv[]) {
if (argc < 3 || (strcmp(argv[1], "-e") != 0 && strcmp(argv[1],
"-d") != 0)) { fprintf(stderr, "Please enter either -e for encoding or
-d for decoding.\n"); return EXIT_FAILURE;
}

if (strcmp(argv[1], "-e") == 0) {
encode(argv[2]);
} else {
decode(argv[2]);
}

return EXIT_SUCCESS;
}

Regards
Stefan
--
----Ed25519 Signature----
ff71bd199df152306e68d48d8c9757fc3447f7e8abe4a017f9861ca8193416ca
6a7d9cb89a0bf2894a145b8a45c936b33f1280843a9f5648bc1e08dd2d9c2004

Re: Using OTPs without straddling checkerboards, for International Languages

<uma066$vdg4$3@i2pn2.org>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=715&group=sci.crypt#715

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!.POSTED!not-for-mail
From: stefan.claas@iris.to (Stefan Claas)
Newsgroups: sci.crypt
Subject: Re: Using OTPs without straddling checkerboards, for International
Languages
Date: Sun, 24 Dec 2023 20:18:29 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <uma066$vdg4$3@i2pn2.org>
References: <ulckni$3q0oc$1@i2pn2.org>
<ulhsri$bbl$1@i2pn2.org>
<ulkm6o$3rsm$1@i2pn2.org>
<um9va4$vdg4$2@i2pn2.org>
Reply-To: Stefan Claas <stefan@mailchuck.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 19:18:30 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1029636"; mail-complaints-to="usenet@i2pn2.org";
posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U";
X-age: age1yubikey1qdf6fmuk6qqzlzhz69yw5y6eqzhxdkvk3qdcnz77hf8qtqrwpptm5tfyp06
X-Ed25519: 43e6681c5cf3cdc2f9ccf975f8a01b18c5e84bf0ba00605faba9cc0f8757a117
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Stefan Claas - Sun, 24 Dec 2023 19:18 UTC

Stefan Claas wrote:

> Here is a C version. Must be compiled with lodepng.c and lodepng.h
> https://lodev.org/lodepng/
>
> // d2i - decimal to image. Converts a long decimal string to .png
> image
>
> [...]

https://postimg.cc/LhDy3WXZ

Then simply convert decimal to hex and hex back to the message, with
xxd or something else.

Regards
Stefan
--
----Ed25519 Signature----
3870cd9bdbbe6da6a0d2dc541a2058c274786ac2103a2fa126bd9d29157bf606
120e1431ce51d6e35fbd89e816e58dca464c356c8adf9e9098e64dfbc21a990f


devel / sci.crypt / Using OTPs without straddling checkerboards, for International Languages

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor