News for hackers. Stuff that matters.
Re:If your cipher were secure, this image wouldn't have repe... by jascii on Friday February 28, 2020 @06:14PM (#22447300)
Thanks for that rabbit hole!

See also: https://github.com/mmcc1/crystalline http://maldr0id.blogspot.com/2015/05/crystalline-cipher-and-...

The authors inability to take any criticism is stunning, sometimes I wonder if a fragile ego isn't one of the greatest barriers to cyber security..

Re:If your cipher were secure, this image wouldn't have repe... by thethirdone on Friday February 28, 2020 @07:33PM (#22447734)
From the github README:

> Designed to be as secure as a one-time pad, without a weakness due to the use of repeating keys,

That immediately shows that the person writing it doesn't know cryptography. You simply can't get the security of one-time pad without having a key the size of the data, and if you do, just use it as the pad.

Re:If your cipher were secure, this image wouldn't have repe... by Someone on Friday February 28, 2020 @08:16PM (#22447951)
There’s also the claim

> Crystalline employs information loss as the basis of its security.

If encryption loses information, there’s no way decryption can bring it back.

In the extreme

  def encrypt(s):
    return “(TOP SECRET)”
is totally secure, but also totally useless.
Re:If your cipher were secure, this image wouldn't have repe... by khazhoux on Saturday February 29, 2020 @03:47AM (#22449670)
Not totally useless. You just need the dual:

    def decrypt("(TOP SECRET)"):
      return s
Re:If your cipher were secure, this image wouldn't have repe... by alexeiz on Tuesday March 03, 2020 @12:56AM (#22472183)
I know how to fix it. Blockchain!
Re:If your cipher were secure, this image wouldn't have repe... by segfaultbuserr on Friday February 28, 2020 @11:19PM (#22448789)
Not useless. This is, in fact, the most widely used encryption algorithm in declassified government documents! /joke
Re:If your cipher were secure, this image wouldn't have repe... by dreamcompiler on Saturday February 29, 2020 @11:24AM (#22451309)
I noticed this too. One of two things is going on:

a. The author cannot decrypt it either, unless he's cheating somehow, or

b. It's not really losing information and the author is lying.

Re:If your cipher were secure, this image wouldn't have repe... by infinity0 on Saturday February 29, 2020 @08:01AM (#22450327)
>> Designed to be as secure as a one-time pad,

> That immediately shows that the person writing it doesn't know cryptography. You simply can't get the security of one-time pad [..]

Talking about a one-time pad at all in the context of making something actually secure for internet usage, shows that the talker doesn't know about cryptography.

A one-time pad having "perfect security" is only true in the context of a particular security model that doesn't generally hold true on the internet - one where the adversary cannot change the ciphertext whilst it is in transit.

Under a more realistic security model, we need a message authentication code or some other equivalent, to protect against adversaries changing the ciphertext. It's a well-known theorem of modern cryptography that in fact if you don't have secure authentication under this model, then you cannot achieve secure privacy. In other words, your ciphertext has to be bigger than the plaintext for security on the internet.

(There is in fact a one-time-pad equivalent for MACs where your key is the length of the plaintext and the ciphertext ends up being several multiple times the length of the plaintext, but crackpots when making security arguments about "one-time pads" generally aren't referring to this and aren't even aware of the existence of this. It's a relatively unknown construction and nobody really talks about it in the context of serious modern cryptography.)

Re:If your cipher were secure, this image wouldn't have repe... by scolby33 on Saturday February 29, 2020 @09:24AM (#22450683)
What is the MAC-like construction for an OTP cipher?
Re:If your cipher were secure, this image wouldn't have repe... by fdupress on Saturday February 29, 2020 @09:47AM (#22450800)
One-time MACs... The most widely used constructions are based on polynomials: GHASH (from GCM) and Poly1305.
Re:If your cipher were secure, this image wouldn't have repe... by cryptonector on Friday February 28, 2020 @07:36PM (#22447750)
And you can't reuse the keys in a one-time pad system.
Re:If your cipher were secure, this image wouldn't have repe... by jascii on Friday February 28, 2020 @07:52PM (#22447823)
Lol, I always wondered what the "one-time" bit meant ;)
Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Friday February 28, 2020 @09:04PM (#22448215)
Nitpick: You can, but you shouldn't.
Re:If your cipher were secure, this image wouldn't have repe... by jascii on Friday February 28, 2020 @09:11PM (#22448246)
Nitpick: the moment you do, it stops being a one-time pad.
Re:If your cipher were secure, this image wouldn't have repe... by Retric on Friday February 28, 2020 @10:56PM (#22448704)
Nitpick: You can as long as you only use each bit on the OTP once.
Re:If your cipher were secure, this image wouldn't have repe... by BubRoss on Friday February 28, 2020 @11:14PM (#22448763)
That's just saying the same thing.
Re:If your cipher were secure, this image wouldn't have repe... by Retric on Friday February 28, 2020 @11:28PM (#22448821)
Historically OTP where shared as physical pads of paper with a different sheet of paper for each message. This is useful as lost messages did not stop communication. If a sheet did not decode the message then try the next sheet.

However, this meant there where leftover bits of each key. Though if you think of each bit as a different key then sure, just start each message with the offset.

Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Friday February 28, 2020 @10:04PM (#22448473)
I've always wondered if the assumption, they're never using the same one twice, would suffice to practically always use the same one then (assuming data-length never changes).
Re:If your cipher were secure, this image wouldn't have repe... by alecbenzer on Friday February 28, 2020 @10:28PM (#22448577)
Not sure what you're asking? If you use the same key over and over again, then you're using the same key much more than just twice.

The idea of a one-time-pad is that you're basically just randomly flipping the bits of your input, which means the output of an OTP cipher is indistinguishable from random data.

If you're using the same key multiple times though, then the output of the cipher (considered over time) won't be random, and you'll be able to detect patterns from the original input in the cipher output (e.g., the shape of an image, frequency of certain letters).

Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Friday February 28, 2020 @10:35PM (#22448610)
The output is always random, regardless how often the key has been used.

The thing is, if you know the same key has been used a second time, then yes, having both outputs (can? will? must? could?) helps to acquire the key.

But how do you know they're using the same one? Or how are you sure, they're not? All you have, are two pieces of random data.

Re:If your cipher were secure, this image wouldn't have repe... by alecbenzer on Friday February 28, 2020 @10:40PM (#22448626)
> The output is always random, regardless how often the key has been used.

The output of any _one_ use of the pad is, yes, but the point is to consider all of the data that an attacker may have. If you re-use the key multiple times, then the entirety of the cipher texts an attacker has is not random. (See also: https://xkcd.com/221/)

> But how do you know they're using the same one? Or how are you sure, they're not?

You'll be able to tell because you'll see patterns in the data: https://upload.wikimedia.org/wikipedia/commons/f/f0/Tux_ecb....

Re:If your cipher were secure, this image wouldn't have repe... by wolfgang42 on Friday February 28, 2020 @11:03PM (#22448729)
Note, that illustration (Tux_ECB) is demonstrating a different problem—ECB cyphers may expose patterns across blocks—rather than reused one-time pads. One-time pads will always produce random images as their output.
Re:If your cipher were secure, this image wouldn't have repe... by alecbenzer on Friday February 28, 2020 @11:14PM (#22448765)
Eh, it's sort of the same? You can imagine each pixel as its own message: the point is that repeatedly transforming things in a consistent but "random" way isn't actually random. The ciphertext of each pixel is "random", but the pattern when looking at all the pixels is clear.
Re:If your cipher were secure, this image wouldn't have repe... by layoutIfNeeded on Saturday February 29, 2020 @01:57AM (#22449357)
Your more-than-one-time pad is basically an ECB mode cipher with block size = the length of the message.
Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Friday February 28, 2020 @10:51PM (#22448684)
Assume you have the OTP: 4242.

You encrypt the data ABCD -> EDGF.

You encrypt the data DEFG -> HGJI

Someone intercepts the data, and has: EDGF and HGJI

And now?

Or maybe like this: Since OTP and data are interchangeable, due to matching lengths, isn't using the same OTP with different data, essentially the same like using the same data with a different key?

Re:If your cipher were secure, this image wouldn't have repe... by archi42 on Saturday February 29, 2020 @05:49AM (#22450010)
The normal operation for an OTP is xor. Now if you reuse the random key K on messages A and B, you get encrypted messages A' = K xor A and B' = K xor B. Now, an attacker who learns A' and B' just needs to do A' xor B' = A xor K xor B xor K = A xor B. Since your input is not random, but structured data like natural language, this is now relatively trivial to break using crypt analysis since you essentially end up with something like "MEET AT DAWN" xor "I LIKE TRAINS".

Story time: The USSR once reused an OTP key (after years or even decades, can't recall), but a US' three letter agency had the old ciphertext (A') and reused that to break the new ciphertext (B'). They probably had some scheme with a broadcaster saying "use codebook 1234, the secret is GARBLED DATA". At least that's the story a cryptography lecturer told us (and the fragments I remember).

Re:If your cipher were secure, this image wouldn't have repe... by alecbenzer on Friday February 28, 2020 @11:08PM (#22448743)
I'm reaching the limits of my stats knowledge, but you may be able to figure out, even from just those two ciphertexts, something about the input plaintexts. It's obviously harder with shorter inputs.

I guess one thing to note is that, if what you were transmitting was just random noise to begin with, OTP re-use may not matter/be evident. But essentially all data that people care about transmitting isn't random noise, it has some structure, and that structure comes through with OTP re-use (more and more the more you re-use and the more data you re-use with).

AIUI, the Enigma machine (not quite an OTP but I think similar) was broken in part because of just a few key re-uses https://en.wikipedia.org/wiki/Cryptanalysis_of_the_Enigma#Op...

Re:If your cipher were secure, this image wouldn't have repe... by wnkrshm on Saturday February 29, 2020 @05:46AM (#22450003)
EDGF encrypted with HGJI is now the same as ABCD encrypted with DEFG. In this example, that means the distance between characters of the encrypted messages is the same as the distance between the original messages.

From my limited knowledge of the matter, that alone doesn't give you the cypher - you'll need to know additional information about the messages to get the cypher (statistics of words, conditional probabilities of letter sequences etc.). But without the one reuse of your cypher, you couldn't apply these techniques.

Re:If your cipher were secure, this image wouldn't have repe... by Retric on Friday February 28, 2020 @11:06PM (#22448737)
Look at an ASCII table. Each byte could be any value, but if you’re sending text data the 8th bit is very likely to be 0. That means if your sending say 10 different messages the same pattern is going to show up 10 different times making it clear something is going on.

That ASCII example is rather extreme, but all messages have patterns as long as you’re given enough of them you can break a reused OTP.

Re:If your cipher were secure, this image wouldn't have repe... by wolfgang42 on Friday February 28, 2020 @10:54PM (#22448691)
> But how do you know they're using the same one?

Here's a good illustration of the principle: https://crypto.stackexchange.com/questions/59/taking-advanta...

Obviously it's more complicated with text (where you have less information filled in); for that you have to do crib dragging which is a bit more involved but not fundamentally difficult.

Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Friday February 28, 2020 @11:03PM (#22448730)
I'm confused, this and a blog post linked somewhere else in this topic, describes the OTP has XORing data with key.

I've always assumed it was just adding the key-value to the data-value, as is described in the Wikipedia article[0].

And those two can't be the same, e.g. with both data and key value 'a' (0x5c), I'd get 0x0 with XOR and 0xb8 with addition.

EDIT: Ah, damnit, second paragraph, it says: "On July 22, 1919, U.S. Patent 1,310,719 was issued to Gilbert Vernam for the XOR operation used for the encryption of a one-time pad."

Everything I've posted in this thread about OTP was under the assumption of an additive cipher. My bad.

[0]: https://en.wikipedia.org/wiki/One-time_pad

Re:If your cipher were secure, this image wouldn't have repe... by wolfgang42 on Friday February 28, 2020 @11:15PM (#22448774)
The Wikipedia article is using modular addition as it's more accessible to the layperson than a binary XOR, but they're functionally equivalent for the purposes of cryptanalysis. XOR is just modulo arithmetic on single bits instead of larger numbers.

Edit for your edit: All of this discussion applies the same for additive OTP as it does for XOR OTP; once you have depths you can start applying the OTP (however it's done) “in reverse” as it were to begin extracting patterns in the data.

Re:If your cipher were secure, this image wouldn't have repe... by detaro on Friday February 28, 2020 @11:14PM (#22448767)
Both are one-time pads, there isn't one exact algorithm that's "the one-time pad". And XOR is really the same as addition, just done per-bit instead of per-byte/per-character. But as far as I know, XOR is the most commonly referenced example.
Re:If your cipher were secure, this image wouldn't have repe... by pdkl95 on Friday February 28, 2020 @11:28PM (#22448817)
> But how do you know they're using the same one?

You can easily discover reused keys if you can guess any part of either plaintext. From that guessed fragment, you can recover both plaintexts and the entire key (pad) using the "Zig Zag" method.

(P=plaintext, C=cyphertext, K=reused_pad, ⊕=XOR)

If we capture two ciphertexts that reused the same key

    C1 = P1 ⊕ K
    C2 = P2 ⊕ K
Then combining the ciphertexts cancels the key

    D = C1 ⊕ C2 = P1 ⊕ P2
The resulting D is also the plaintexts XORed together. If you can guess any part of either plaintext - a standard header or commonly used words (like "weather" or "Heil Hitler") - then XORing that guess with D reveals part of the other plaintext at the same position. Once a plausible match is found, the rest of the decryption is relatively easy: zig-zaging guesses of neighboring words extending out from the original guess.

Professor Brailsford's explanation[1] of the method on Computerphile is nice introduction to this type of cryptanalysis.

[1] https://www.youtube.com/watch?v=yxx3Bkmv3ck

Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Saturday February 29, 2020 @12:01AM (#22448966)
Thanks, yes, this shows how it is flawed for the XOR-variant of the OTP.

In 09:05 ([0]) you can see why, namely that K and K cancel each other out.

I don't think this would be the case with an additive cipher.

EDIT: Continuing the thought with an additive cipher:

  P1 + P2 = C1 + C2 + 2K
  2K = P1 + P2 - (C1 + C2)
  K = P1/2 + P2/2 - C1/2 - C2/2
Uhhh... we know both Cs. And... that's it?

[0]: https://youtu.be/yxx3Bkmv3ck?t=545

Re:If your cipher were secure, this image wouldn't have repe... by thaumasiotes on Saturday February 29, 2020 @03:31AM (#22449628)
It's not like it's hard to get K and K to cancel each other out using addition. Why are you generalizing from "the inverse of XORing K is XORing K again" to "the inverse of adding K is adding K again"? It isn't, but everyone knows what the inverse of adding K is.

    C1 = P1 + K
    C2 = P2 + K
    C1 - C2 = P1 - P2
And if you can guess part of either plaintext, you'll see the same part of the other plaintext, and know what the key was, exactly the same as for XORing. As somebody else already pointed out, that's because XORing is a variety of addition anyway.
Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Saturday February 29, 2020 @02:30AM (#22449462)
Can't edit anymore, it should be

  P1 + P2 = C1 + C2 - 2K
  2K = C1 + C2 - (P1 + P2)
etc...
Re:If your cipher were secure, this image wouldn't have repe... by runamok on Friday February 28, 2020 @11:27PM (#22448816)
At bsides this year they showed exactly that.

It does not appear he's uploaded slides yet but here is link to session: https://bsidessf2020.sched.com/event/Ybgu/break-crypto-like-...

He said he was going to check in his code to GitHub so may be able to find same with some detective work.

Essentially you could xor two encrypted images with the same OTP and see them sort of superimposed on one another.

Re:If your cipher were secure, this image wouldn't have repe... by oh_sigh on Friday February 28, 2020 @10:58PM (#22448706)
Allies detected in WWII when the same pad was mistakenly used multiple times.

Depends how motivated your enemy is

Re:If your cipher were secure, this image wouldn't have repe... by cryptonector on Saturday February 29, 2020 @01:49AM (#22449331)
"Can" as in "you could possibly do it, yeah", and "shouldn't" as in "really, really, REALLY shouldn't". The Venona cable decrypts were made possible by one-time pad reuse.
Re:If your cipher were secure, this image wouldn't have repe... by klingonopera on Saturday February 29, 2020 @01:52AM (#22449337)
I'm not sure, definitely not if you use XOR-OTP, not so sure about additive-OTP, see my reply here[0] for reasons.

Would like to know, if my assessment on additive OTP is correct, if anyone knows?

EDIT: I mean, of course you still shouldn't, but where the XOR catastrophically fails after just a single reuse, the additive one should be more robust, even with reuse. The Venona Decrypts were additive-OTP, I postulate, the decryption rate would've probably been higher with XOR-OTP.

[0]: https://news.ycombinator.com/item?id=22448966

Re:If your cipher were secure, this image wouldn't have repe... by numpad0 on Saturday February 29, 2020 @09:10AM (#22450617)
I thought the notion of OTP is that there is absolutely nothing to decode, prove or disprove ciphertext?

Like if ciphertext is "supersecret" then it feels like plaintext can't be more obvious and OTP must be "00000000000", but there's nothing anywhere to logically/mathematically support it. OTP could be something else and plaintext could be "hackernews" or "ycombinato".

In reality a simple XOR with a random sequence preserve enough entropy of data that I've heard you could make out voices if used on media, so payloads must be scrambled, but that's not recovery, only a guess. ANY reuse breaks that notion and make it not an OTP cryptography.

Re:If your cipher were secure, this image wouldn't have repe... by klyrs on Friday February 28, 2020 @09:23PM (#22448294)
If yor rot13 your OTP the second time around, it's probably fine. In the same way that turning your underwear inside out is probably fine. As long as nobody sniffs...
Re:If your cipher were secure, this image wouldn't have repe... by cryptonector on Friday February 28, 2020 @07:38PM (#22447756)
This happens with some regularity in the crypto scene. Someone comes up with a cipher and they think it must be awesome! because they came up with it. Not being cryptographers, these ciphers always fall quickly, then the authors get defensive. I want a doll with Alan Turing's likeness that says "cryptography is hard" when you pull the cord.
Re:If your cipher were secure, this image wouldn't have repe... by teddyh on Friday February 28, 2020 @08:16PM (#22447949)
“Anyone, from the most clueless amateur to the best cryptographer, can create an algorithm that he himself can't break.”

— Bruce Schneier

https://www.schneier.com/blog/archives/2011/04/schneiers_law...

Re:If your cipher were secure, this image wouldn't have repe... by ErikAugust on Friday February 28, 2020 @09:17PM (#22448274)
That was one of my takeaways from reading Applied Cryptography. It has come in handy when evaluating crypto-based software. “Rolled their own crypto... avoid.”
Re:If your cipher were secure, this image wouldn't have repe... by hinkley on Friday February 28, 2020 @09:52PM (#22448418)
If you get bored or tired you could hop over to the compression groups and have some of the same arguments, but with easier counter examples.
Re:If your cipher were secure, this image wouldn't have repe... by jascii on Friday February 28, 2020 @07:54PM (#22447831)
Cryptography is hard enough when using proven algorithms..
Re:If your cipher were secure, this image wouldn't have repe... by Gibbon1 on Friday February 28, 2020 @08:35PM (#22448057)
I remember on an old crypto mailing list some lowly PHP programmer asking if instead of a grab bag of primitives there was some library where he could just encrypt/decrypt a random object. Without having to build a Frankenstein thing out of random cryptographic parts.

Everyone peed on him and he never came back.

The poor sap was right though. The proven algorithms tend to fail catastrophically when used or implemented incorrectly.

Re:If your cipher were secure, this image wouldn't have repe... by larzang on Friday February 28, 2020 @10:29PM (#22448583)
Ironically now PHP is one of the few high-level languages doing this right, with built-in libsodium support and an excellent idiot-proof library available in Halite on top of that.
Re:If your cipher were secure, this image wouldn't have repe... by jjeaff on Friday February 28, 2020 @11:19PM (#22448791)
Agreed. And it even has a global you can use for the cipher that is updated along with the php version.
Re:If your cipher were secure, this image wouldn't have repe... by artsyca on Friday February 28, 2020 @08:18PM (#22447970)
Turing is my hero as I'm sure he is for a lot of us I sometimes apply the reasoning of what would Alan Turing say? And not only what would he say but how would he say it?

I'm fascinated by his gentle nature as an algorithmic thinker who applied computer science to all aspects of his experience

Re:If your cipher were secure, this image wouldn't have repe... by jiggawatts on Friday February 28, 2020 @09:01PM (#22448203)
The author reminds of some religious people I've had debates with in the past. They would make some fundamentally flawed argument, get shot down, and so they would move on to other arguments, which is not great but valid. But then, later, I'd see them making the exact same argument to someone else.

To people like this, arguing is like punching. If you punch someone and they get up, they're a "tough opponent". That doesn't mean that punching is ineffective on other people. They just don't understand at their core that once an argument is shown to be false, it can never be reused. Their mind just doesn't work this way. They think "Well, left-hook didn't work on this guy, but maybe it'll work in that guy" or "This guy didn't fall for this argument, but maybe that guy will."

It's deeply dishonest, but I'm not convinced they're even aware of this.

So, just from a cursory look at his code, the glaring problems I see are:

1) It'll crash if you feed it more than 256MB because of the way the C# BitArray class works. He's also using 32-bit ints in several places that have similar issues. These are implementation details, but it just goes to show how thoughtless the "reference implementation" is.

2) Similarly, the reference implementation copies the entire data into the BitArrary (and then back into a byte array) for each "round". This is spectacularly inefficient. He never mentions throughput in terms of MB/s/GHz or any such thing. I wonder why...

3) It's not a stream cipher. You need to encrypt the entire file. Again, he could come up with some sort of streaming version by feeding in the last few KB of the previous encrypted chunk into the next chunk, but he hasn't. As the long history of various streaming ciphers have shown, this is actually a hard problem to solve efficiently and securely. This is why AES-GCM is the hot new thing: it's both.

4) If either the key or salt values are all 0s then the encryption does nothing. AES for comparison will still encrypt your data with some level of security even if the IV initialisation is not perfectly random or skipped.

5) He's calculating the offsets as an "int" from a byte multiplied by a byte. Hence the maximum shift is 65536 positions. This is just big enough to exceed L1 data cache on most platforms, but have a high hit ratio. Whether you hit the L1 cache or not depends on the Key & IV values, so this is a recipe for timing-based side-channel attacks. Constant-time cyphers are basically mandatory these days...

6) Related to the above: The bit shifts are only in an 8KB window, but the byte shifts are in an 64KB window. I wonder if there's some interaction here where this might make some keys insecure.

7) Despite this windowing, the default "protocol" wraps around the end of the file to the beginning using a modulo the data.Length, so it can't be used as a streaming cipher. To do so, he'd have to introduce a breaking change.

8) The encryption is defined in terms of bit-by-bit and byte-by-byte long-range operations, so there's basically no hope of ever making this efficient. E.g.: with SIMD or similar many-bytes-at-a-time instruction sets. The "state" that would have to be kept in CPU registers is over 64KB, so this is just never, ever, EVER going to compete with something like AES-NI.

I could go on, but I'm wasting my time. This is wasting everyone's time.

The author clearly has no interest in producing something that is secure and usable. He's just enjoying the arguments. He's even posted some of the feedback on his GitHub, proudly showing off the debates he's felt he's won.

Don't feed this troll.

Re:If your cipher were secure, this image wouldn't have repe... by pdkl95 on Friday February 28, 2020 @11:55PM (#22448941)
> But then, later, I'd see them making the exact same argument to someone else.

When someone continues to cargo culting useful fragments of knowledge instead of actually learning how/why those fragments actually work, the cargo cult behavior tends to incorporate increasing levels of magical thinking.

A good example of an extreme form of this are the "sovereign citizens" that try to use their "creative" reinterpretations of legal code and procedure almost as an incantation or spell. The like to read from Black's Law Dictionary as if it was a grimoire.

Re:If your cipher were secure, this image wouldn't have repe... by the_pwner224 on Saturday February 29, 2020 @04:11AM (#22449742)
> If either the key or salt values are all 0s then the encryption does nothing. AES for comparison will still encrypt your data with some level of security even if the IV initialisation is not perfectly random or skipped.

Not experienced in this field but this seems like a good thing to me. Even just using crypto properly appears to be hard, and this 'do nothing when given 0' trait makes the vulnerability very obvious to a quick basic security examination (or even just looking at it in Wireshark), vs needing an expert to do lengthy analysis and figure out that you subtly fucked up the AES initialization and had been running unsafe code for years.

Re:If your cipher were secure, this image wouldn't have repe... by numpad0 on Saturday February 29, 2020 @09:31AM (#22450719)
> They just don't understand at their core that once an argument is shown to be false, it can never be reused.

I'd frame it as that it doesn't matter to them. People who aren't in a feedback reward loop with the reality or with others feel no consequences, need of change or improvement. An engineer like you would generally want things to be correct regardless of outcome, but for general internet idiots or lots of startup self-appointed C-classes, sadly that is often not the case.

Re:If your cipher were secure, this image wouldn't have repe... by yellowstuff on Saturday February 29, 2020 @06:36AM (#22450110)
> It's deeply dishonest, but I'm not convinced they're even aware of this.

I suspect you might be confusing a mistake for a conflict, as described here: https://slatestarcodex.com/2018/01/24/conflict-vs-mistake/

You quite naturally see a discussion of a cipher as an attempt to find the truth, and it barely registers for you that it might not be. They probably see a discussion of their cipher as an attempt to persuade, so they use the most effective argument they can think of at a given time, and it barely registers for them that the discussion could be an unbiased attempt to find the truth.

Re:If your cipher were secure, this image wouldn't have repe... by jiggawatts on Saturday February 29, 2020 @08:02AM (#22450331)
That's an interesting article, but I think it's oversimplifying things, which I suppose makes me a Mistake Theorist. 8)

I prefer to think of people's traits not in simple binary terms, but more in terms of high-dimensional attributes. Think: word2vec.

In practice, I find that people are messy. They have their own interests, and hence there's conflict, but they're also lazy, hence the mistakes. There's plenty of room for several kinds of suboptimal behaviour in their squishy meat brains.

Sometimes I feel like I'm The Man From Earth, watching this craziness unfold from the outside.

PS: Watch it, it's a good movie.

Re:If your cipher were secure, this image wouldn't have repe... by lopmotr on Friday February 28, 2020 @09:39PM (#22448364)
It's important for different people to have excessive faith in different beliefs. If everyone was just about the right amount of reasonable, then small errors in judgement would cause them to give up on an idea that might turn out to be valuable. People believe things for emotional reasons they don't understand and the logic is just an attempt to justify it. They might still have valid emotional reasons behind it. In the case of religion, it does have value even if it's wrong.
Re:If your cipher were secure, this image wouldn't have repe... by jiggawatts on Friday February 28, 2020 @10:23PM (#22448561)
One interesting take on this is that certain attitudes such as "authoritarian" or "egalitarian" both have value in the sense of the "selfish-gene" evolutionary theory.

So for example, imagine a primitive tribe of humans facing a drought. If they spend too much time discussing options democratically, if they don't all agree, or if they waste time by changing their mind half-way to a source of water, they'll all die. But if they follow an authoritative leader -- even if makes bad arguments or none at all -- they might all make it to the mountain spring in the distance and survive.

The gist of this is that in times of hardship, authoritarian, conservative, or "right-wing" styles of though/argument/politics/whatever can win the day. But in times of relatively low stress, more democractic/left-wing/progressive attitudes can help the tribe discover even more resources than they would have if they always followed the same instructions to go to the same sources. Innovation and exploration can turn the merely adequate into a bountiful plenty, resulting in more healthy babies, etc...

So these attitudes and personality traits are important to have present in the gene pool to make the species as a whole robust against a wide range of challenges and threats.

Re:If your cipher were secure, this image wouldn't have repe... by cma on Friday February 28, 2020 @11:18PM (#22448786)
Seems representative democracy with an executive branch already largely addresses this.
Re:If your cipher were secure, this image wouldn't have repe... by andrewflnr on Friday February 28, 2020 @09:13PM (#22448251)
> sometimes I wonder if a fragile ego isn't one of the greatest barriers to cyber security..

If you include the fragile egos of sysadmins and executives who refuse to fix their systems, then yes, absolutely.

Re:If your cipher were secure, this image wouldn't have repe... by userbinator on Friday February 28, 2020 @10:22PM (#22448554)
On the other hand, I feel like the elitist, alienating "don't even try to learn, just obey us" attitude of much of the cryptography/security community could also be making the situation worse. I mean, a key-and-data-dependent permutation is how a lot of ciphers work; that's not a fundamentally flawed idea. The details of the implementation are a different matter, however.
Re:If your cipher were secure, this image wouldn't have repe... by infinity0 on Saturday February 29, 2020 @08:28AM (#22450412)
That's like saying "being a vehicle is how a lot of cars work"; the reasons on why the cipher is flawed are a bit more specific than that.

As for the elitist arrogance, whilst I'm sure these exist in other security-related interactions across the world, the interaction that's the subject of this thread involves plenty of polite comments that

- point out author's lack of background knowledge - refer to short-cut theorems that help evaluate a cipher, implying the author should learn about these theorems - explicitly tell the author to learn about these theorems

In response to this, the very first reply the author gives is "It almost sounds like you have had your soul crushed by bureaucracy over the years and have lost all passion for this field. I hope that's not true."

Yeah, however much "arrogant" you interpret the security people in this thread to be, it's only fair to interpret the OP (Mark McCarron) to be 2-3x as arrogant.

Re:If your cipher were secure, this image wouldn't have repe... by chapium on Friday February 28, 2020 @11:01PM (#22448722)
Fortunately most books don't have an opinion about who is reading them.
Re:If your cipher were secure, this image wouldn't have repe... by lima on Saturday February 29, 2020 @09:40AM (#22450763)
They did in fact encourage him to learn and even pointed him to various entry-level resources and mailing lists.
Re:If your cipher were secure, this image wouldn't have repe... by bob1029 on Saturday February 29, 2020 @09:49AM (#22450808)
I am honestly very triggered by any tone of elitism in the sphere of intellectual or professional pursuits. It's not just in tech - just try googling 'DIY HVAC Repair'. Now, I don't advocate partaking in activities which are legitimately dangerous without training and certification (e.g. charging an HVAC system with freon or operating a crane), but when all you are trying to do is replace a contactor in your HVAC system and you get a wall of "DIY is not allowed here" when asking basic questions, it really puts some hate into your soul. Cryptographers give me the exact same sensation with their 'no DIY' rhetoric.

At the end of the day for me, it mostly boils down to some ulterior agenda which seeks to keep competition or perceived threats to the incumbents' control at bay.

Does the NSA have a vested interest in most technology workers being able to competently roll their own encryption schemes? From my very jaded political perspective, I would say absolutely not. It arguably makes their mission exponentially harder if they have to deal with novel approaches to securing communications. They would probably prefer everyone just use ECC with their hand-selected curve parameters.

Re:If your cipher were secure, this image wouldn't have repe... by DanBC on Saturday February 29, 2020 @10:11AM (#22450912)
> It arguably makes their mission exponentially harder if they have to deal with novel approaches to securing communications.

NSA and GCHQ would absolutely love it if people used novel approaches to cryptography and started kludging together dumb crypto systems. This makes their stated mission considerably easier.

Re:If your cipher were secure, this image wouldn't have repe... by asudosandwich on Friday February 28, 2020 @07:27PM (#22447700)
What if he’s not meant to be read in good faith?
Re:If your cipher were secure, this image wouldn't have repe... by lilSebastian on Saturday February 29, 2020 @02:51AM (#22449518)
> The authors inability to take any criticism is stunning

Unfortunately I find that this is all too common.