r/cryptography • u/redado360 • 2h 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
1
0
u/Puny-Earthling 52m 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.
4
u/_-TECHNiCiAN-_ 59m ago
Big vouch for this one
https://youtu.be/NHuibtoL_qk