I used 'Hello World.' in Chinese, converted it to hex
and then to decimal.
I know OTPs should be used with pencil and paper,
but when used on a secure offline computer, it might
be an option too.
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.
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...
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 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?
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]
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.
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'?
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 cipher text:
68238 74748 71187 68182 30866
25630 54140 80387 35
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
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.
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.
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.
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.
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.
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
[...]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:29:17 |
Calls: | 10,387 |
Calls today: | 2 |
Files: | 14,060 |
Messages: | 6,416,658 |