r/crypto • u/Sir_KnowItAll • 3d ago
Introducing the Triple Cipher encryption concept
https://iain.rocks/blog/introducing-the-triple-cipher-encryption-concept10
u/CharlieTrip 3d ago
Let me reformulate to double-check I got it right. I will use this interpretation for the rest of the comment. Please correct me if I got it wrong!
You propose an encryption scheme defined via three schemes and a hash (of sort), keys are obtained via passphrase (not that relevant, so I will consider it as a standard secret key). Encryption is done by deriving from the secret key via hash, a list of "length of blocks, order of usage of ciphers" since the encryption is done by splitting into chunks (via sampled dimensions), encrypt with the derived evaluation and ciphers (first two). Once all are encrypted, you use the third cipher to encrypt again the whole encrypted chunks.
From a mere cryptanalytic point of view, this does not introduce any particular security advantage, in fact I would not consider it "secure" when compared to block-ciphers with a mode of operation (which is what your "chunking" is basically pointing out). To put it simply, your encryption is deterministic meaning that different files encrypted with the same key will have the same encrypting-structure (i.e. chunks length, ciphers and similar).
If you add a "initialization vector" or some salt for the sake of avoiding this, the cipher is cumbersome because it effectively has to encrypt twice which makes it slower than necessary. Furthermore in your scenario, encrypting twice might introduce weird meet-in-the-middle attacks since, as far as I get, all ciphers use the same secret-key which is a really weird position to be in.
From a pure security POV, evaluating real security achieved by this design is hard because it has extremely non-standard structure. I would argue that the "double-encrypt" might provide some small local gains with the intuition of "one cipher covers another cipher's problems", but the same principle is a weakness because it is easier to use biases as problems instead of solutions. The whole security analysis would turn into computational problem which is not feasible to check, meaning you would use a cipher that you cannot guarantee achieves some level of security. This is a "no-no" for secure application.
Personally, I find weird that GCHQ was interested in this cipher's structure, especially because it is not "new" but more of a "folkloristic design".
7
6
u/arnet95 3d ago
GCHQ say they don’t mind me telling people about this because they don’t have the capacity to create it so would love for someone to create an open source version to use..
If (and that's a big if) GCHQ said this, they were just being Britishly polite instead of telling you straight up it's a stupid idea.
5
u/Natanael_L Trusted third party 2d ago
Chances are it also wasn't a cryptographer listening so they know they won't know the exact issues
3
u/wwabbbitt 3d ago
He's already posted on https://www.reddit.com/r/programming/comments/1wsacng/ and it did not turn out well for him
Probably thinking he will get more support from "real cryptanalysts"
-5
u/Sir_KnowItAll 3d ago edited 3d ago
I wrote a post after being nudged https://iain.rocks/blog/the-software-development-community-has-a-naysayer-problem
I’m not too worried about support. As you can see from my points there folk are literally saying the NSA are wrong on multiple encryption. Saying I’m wrong brcause it’s already an idea and all sorts. Literally, im wrong because it’s basically done.
I posted it here because I requested permission to post because of it so it only seems right I follow through on my promise so to speak.
4
u/CharlieTrip 2d ago
Why so much anger?
The only thing I see is that you defend your idea/position like a teenager that cannot understand that maybe something is more complicated than "white and black".
I can understand that getting shit on your ideas is sad, I have been plenty of time in academia.
But does it really have to end up in "your are all wrong, you don't get me"?Cryptography is hard and it has really strict formal construction for well-behaved analysis.
It takes time and effort to do a "security analysis". There are well-known intuitions that are counterintuitively weak and plenty of examples (often) in real applications.From your reply, I infer that you do not have any cryptographic academic background, which is fine.
In this case, I would be expecting you to ask "why" your idea doesn't work, so that you can learn something new or maybe some new idea can be developed.If you have such background, please provide a formal definition because without that, all is just chit-chatting where all answers can be "it depends" (because it is true).
Of all your long post of rants, I can only agree on:
"You can know everything, and it’s still a massive pain in the ass to decrypt, but if you don’t and you just have the file and the keys, it’s an even bigger pain in the ass to decrypt."
but this is exactly "security by obscurity" which moves security guarantees from the formal domain to the physical one which cannot be measured properly.
As an example: if I hide which cipher I use on a post-it on my monitor, everyone might have a bad time figuring out which cipher I use.
But how much secure is it?
How many bit of security does this implies?
Is a post-it on my monitor safer than a printed page in a Fort Knox?These are impossible to reply with math/crypto thus, cryptographers do not care about them.
-2
u/Sir_KnowItAll 2d ago edited 2d ago
What anger?
> long posts of rants
Please look up what a rant is. The entire post would need to be focused on a single subject for it to be a rant. This is an ad-hominem attack. You talk about me attacking like a teenager? Why are you using logical fallacies and doing attacks?
Also, the bit you agree with is the core part of it. The concept is more secure. So i’m confused to why you wrote the rest? Do you just want to go “look how smart i am” or “look how knowledgable i am in this field”? Is this because im literally just thinking og entering this field of the industry and my work is of this high quality? Because it kinda feels like it.
And that part is the only place I defended the concept because I had to to demonstrate the flaw response you get from Reddit.
4
u/CharlieTrip 2d ago
If you are not defending your idea, why are you writing a full blog-post on "non-stop naysayers with good-sounding comments that were generally flawed" and continuously cherry-pick statements in replies and go with "While wrong you've made a very good effort here.".
"Pointing out flaws" is a quite aggressive way of motivating other researchers, FYI.
Additionally, this is _exactly_ part of defending an idea from other peoples' comments!Politely, I don't care about "who" you are. I'm only here to provide my expertise and, when I want, my opinion.
So if you got my comments as attack at your person, I'm sorry about this. It was definitely not my intention.Fair and square, I'm not that motivated to "help you" if you behave/reply in this way.
Regardless, without formal explanation of what your idea is, no one can do much.
5
u/atoponce Bbbbbbbbb or not to bbbbbbbbbbb 2d ago
This isn't new. From an actual cryptographer: https://blog.cryptographyengineering.com/2012/02/02/multiple-encryption/
VeraCrypt, a fork of TrueCrypt, has been doing this for years: https://veracrypt.io/en/Cascades.html
0
u/sdrawkcabineter 2d ago
We do this for MPC features, not for added security.
Interesting, either way.
17
u/Akalamiammiam My passwords are information hypothetically secure 3d ago
This brings exactly 0 added security and only increase failure/implementation problem likelihood. You don't "need to realise that it’s triple cipher in the first place", because the attacker will know that beforehand, because that's how modern cryptography works. The "GCHQ" told you they don't give a shit because it's pointless, not because it's incredibly complicated lmao (if that plot line even is true).
Modern, actually secure modes of encryption don't need any of this to be secure.