r/cryptography • • 5d ago

AES algorithm

Hello,

I am trying to dig deeper about AES algorithm and how it replaced DES. The keys applicable is 256,128, etc some available keys.

How it works from inside.
Is the key is the most important thing to secure.
How diffusion and confusion are implemented in DES.
What are attack vectors for DES and how usually the key is stored ?

Please advise

0 Upvotes

13 comments sorted by

14

u/_-TECHNiCiAN-_ 5d ago

Big vouch for this one

https://youtu.be/NHuibtoL_qk

10

u/nic0high 5d ago

Yeah, Christof's lectures (and the associated book "Understanding Cryptography") are a great starting point

7

u/pint 5d ago

literally anything but ask on a forum

6

u/nicuramar 5d ago

Wikipedia. Follow sources from there.

1

u/Inf0x2A 4d ago

1

u/redado360 3d ago

Thanks looks step by step

2

u/ScottContini 5d ago

I believe the best attack on DES was linear cryptanalysis, which was better than brute force but required lots of known plaintexts.

DES was actually pretty good as far as we know, other than a key size of 56 bits which was too short. Researchers questioned the key size in the early days, by 1999 the DesCracker hardware was built to break it. By modern standards, the block size is too small which brings a risk when great volumes of data are encrypted.

AES brings larger key lengths and block sizes, but it also comes with proofs to be resistant to linear and differential cryptanalysis. It’s an elegant design and has held up over more than 25 years of study.

1

u/Existing-Return-5308 2d ago

A better way to describe it ask the ordinary consumer to download any DES cracker app, and test it on their own PC.

If they are still breaking it a week later, they know its still good for a week’s worth of protection (against someone attacking with a PC).

The reality is you have a high end $2000 PC with good GPU, you MIGHT break 1 key in a month - in practice - if it does nothing else.

If you have 10 DES keys, and 10 word files encrypted (and your key really is random and secret), it would take 5-10 such PC a month to decrypt them all (by key breaking).

So if your data is only secret for a day, DES is pretty good….still …. Against the typical hacker.

1

u/What-a-Crock 5d ago

This video was made 7 years ago and might be a bit outdated but is very informative

1

u/Puny-Earthling 5d ago

AES is kinda like an evolution on top of DES. Sub-bytes and row shifts are different, but they both had an S-box style permutation. Round keys, so the key goes through rounds with the cipher text. Key storage is a completely different question to what key operations happened. Also key storage fundamentally hasn't got much to do with encryption. You can store a key in a barcode tattooed to your forehead if you want.

DES also had this weird discard bytes where it would discard the first or eighth bit.. or both.. I can't recall exactly, and it's somewhat confusing because DES had 56-bit keys, 64-bit blocks, and the compression dropped it to 48-bits and the expansion pushed it back up to 64... Annoyingly I used to remember how to do DES in my head, but I'd need to look at a reference again.

If you can know how to HEX into binary and then learn what XOR is and how to do it you can basically do DES or AES on paper.. Get a lot of paper though I guess.

1

u/ja20481 5d ago

As to the discarded byte in DES, you're probably thinking of the 8 parity bits which are stored together with the key and get removed right at the beginning of the key schedule.

1

u/Puny-Earthling 5d ago

It’s been a while and I don’t really keep myself fresh on the theory of the algorithms anymore but I was thinking of both that and the compression permutation boxes at the same time.

1

u/Jamarlie 5d ago

Why do people ask questions here about the basics of cryptography? This is something that is WIDELY available with a single Google-Search.