AES Encryption 2: AddRoundKey, SubBytes and ShiftRows

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 58

  • @Cubinator73
    @Cubinator73 9 ปีที่แล้ว +32

    I like how you explain this _AddRoundKey_ thing and it just comes out to be an XOR operation :D

  • @oler2322
    @oler2322 6 ปีที่แล้ว +7

    To be honest, this is probably one of the best and easiest coding video I've ever seen. Thank you!

  • @MrGreeneyes77
    @MrGreeneyes77 8 ปีที่แล้ว +20

    Utterly fantastic video(s)! It's so rare to find something this well done by a native english speaker!

    • @nomen385
      @nomen385 4 ปีที่แล้ว

      Ikr...always d indians doing it

  • @JOBEEHUSTLER
    @JOBEEHUSTLER 6 ปีที่แล้ว +1

    Thank you for making me understand this so clearly.

  • @SphereofTime
    @SphereofTime 9 หลายเดือนก่อน +1

    5:59

  • @ImmortalSoul52
    @ImmortalSoul52 2 ปีที่แล้ว

    You sir, are a lifesaver and legend!!

  • @bakkasur9614
    @bakkasur9614 6 ปีที่แล้ว

    i am loving these "Short stories long!" @19:29....Thanks alot! you should do more cryptograph stuff. you make it look easy.

  • @Marshalldsfs
    @Marshalldsfs 5 ปีที่แล้ว +1

    Thank you for sharing this, feel it's very usefully

    • @WhatsACreel
      @WhatsACreel  5 ปีที่แล้ว

      You're welcome, cheers for watching :)

  • @AudicyVEVO
    @AudicyVEVO 4 ปีที่แล้ว +6

    "In case you were doing AES by hand, which you would never do."
    Me: god I hate my professor for making me do it by hand

    • @yungjoshx
      @yungjoshx 3 ปีที่แล้ว

      same this shit sucks man

  • @timgerard262
    @timgerard262 4 ปีที่แล้ว

    G'day mate, from the USA!

    • @WhatsACreel
      @WhatsACreel  4 ปีที่แล้ว

      G'day mate, from Oz :)

  • @theresatobollik2382
    @theresatobollik2382 5 ปีที่แล้ว

    Thank you so much. So well explained.

  • @sethrigney5978
    @sethrigney5978 3 ปีที่แล้ว

    This is very helpful. It's hard programming in college when your hobby isn't writing programs. I end up having to revive my programming experience after months or a year of not writing any programs lol. I am not even in computer science but it is required for my cyber security degree :(

  • @IamNotNewHere
    @IamNotNewHere 5 ปีที่แล้ว

    thank you so much!

  • @ammisaid8273
    @ammisaid8273 6 ปีที่แล้ว

    GALELOIO FIELDS IS COOOOOL !!!!!!

  • @neevpenkar4955
    @neevpenkar4955 3 ปีที่แล้ว +1

    Dear Creel, why are the bytes arranged as 0, 4, 8, 12, and not as 0, 1, 2, 3? In essence, why have you taken them as column vectors and not as row vectors? At least for me, it is somehow more intuitive to have them arranged horizontally. Is AES just programmed that way?

  • @reshabprasad6793
    @reshabprasad6793 8 ปีที่แล้ว +4

    Can u provide us a full source code of this above AES explanation?

  • @mrclipent3708
    @mrclipent3708 4 ปีที่แล้ว

    So you at 18:00 , you're doing the AND operation and not the XOR operation?

    • @WhatsACreel
      @WhatsACreel  4 ปีที่แล้ว +1

      It's XOR. Adding the bits without recording the carry. It's the same as asking if the bits are not equal. If they're not equal, record a 1, otherwise record 0. Hope this helps, cheers for watching :)

  • @Anonymous-pr3gr
    @Anonymous-pr3gr 6 ปีที่แล้ว +1

    Honestly, the wiki page makes it way more complicated than it actually is. Although, i am so happy to know how to operate on bytes now (not that it's hard) cuz i was doing some ciphers before directly on the text. It has terrible.

  • @nlkhoshiro
    @nlkhoshiro 7 ปีที่แล้ว

    thank you an amazing video!

  • @abbasssharara2393
    @abbasssharara2393 6 ปีที่แล้ว

    if anyone want to create those instruction he wrote for shift rows as a loop here it is:
    char tmp;
    int j = 0;
    int i = 0;
    for ( i = 1; i

  • @xRockbandObsessionx
    @xRockbandObsessionx 5 ปีที่แล้ว

    So do you use 16 inside all of your arrays because your key is 16 bytes? Also, for 256 instead of 128, would it become 32 bytes and the key array consist of 32 numbers? Great videos :) Thanks!

  • @sree6119
    @sree6119 4 ปีที่แล้ว

    Which software you have used ..is that python or visual studio??

  • @greenarthur6602
    @greenarthur6602 3 ปีที่แล้ว

    can someone please explain to me on why he is using pointers on his parameters for for the steps?? I dont get it??????

  • @bhalsodnirva104
    @bhalsodnirva104 4 ปีที่แล้ว

    Can you share a link for the code?

  • @eman548
    @eman548 4 ปีที่แล้ว

    what is the initial value of Roundkey in its function ?

  • @asdfg2466
    @asdfg2466 8 ปีที่แล้ว

    Is the code or the program uploaded somewhere?

  • @ElementzDiMetaphysics98
    @ElementzDiMetaphysics98 ปีที่แล้ว

    I typed the whole entire S-Box out lol hahaha

  • @건강나라-f3v
    @건강나라-f3v 6 ปีที่แล้ว

    awsome

  • @chigoziea.991
    @chigoziea.991 5 ปีที่แล้ว

    Can't understand how they match at the AddRoundKey step :P.

  • @roykimor
    @roykimor 9 ปีที่แล้ว +5

    I always feel stupid when it comes to cryptography,
    I can implement any cryptography given instruction,
    but understanding why it does what it does and how it makes it secure enough to be a "standard",
    is beyond my understanding and I can't find good explanation for it.
    So regarding to what I said, mind answering these question about AES ?

    • @INT41O
      @INT41O 9 ปีที่แล้ว +2

      +Roy Mor it's all about confusion and diffusion: en.wikipedia.org/wiki/Confusion_and_diffusion
      SubBytes corresponds to confusion, the rest to diffusion i think

  • @marcosdaniel4237
    @marcosdaniel4237 8 ปีที่แล้ว

    Could you make the file available?

  • @yashbansal7205
    @yashbansal7205 7 ปีที่แล้ว

    when you are using subbytes
    state[i]=s_box[state[i]]
    here state[i] is a character so how can you pass it in s box parameter

    • @creelsmusic5814
      @creelsmusic5814 7 ปีที่แล้ว +1

      It's not a parameter, more like an array index. We're swapping state[i] for the value in the s box with the same number. So if state[i] is 10, then it will be swapped with whatever is in the s box at the 10th position.

    • @yashbansal5655
      @yashbansal5655 7 ปีที่แล้ว

      Creel's Music but you have copied message in state so it can also contain letter like 'T' so than which value og sbox will it take.

    • @creelsmusic5814
      @creelsmusic5814 7 ปีที่แล้ว +1

      'T' is just a number. It's really the ASCII number of the character. 'T' has ASCII of 84, so it would be swapped with whatever is at the index 84 in the s box

  • @Shan-gn7mg
    @Shan-gn7mg 7 ปีที่แล้ว +1

    I like your accent xD

  • @zainabayub8025
    @zainabayub8025 7 ปีที่แล้ว

    can anybody gives me link of s-box genrated how specifically that s-box of hexa num can be created . I wanted to know those values like E3 6C and bla bla words put in that table

  • @JensHove
    @JensHove 7 ปีที่แล้ว +1

    A loop to move 16 bytes. Can't you make a Move(Source,Dest,SizeOf(Source)) in C#??

  • @faythaan7056
    @faythaan7056 4 ปีที่แล้ว

    my code won't run T_T

    • @WhatsACreel
      @WhatsACreel  4 ปีที่แล้ว

      Tell me about it! Mine breaks too. Well, just gotta keep on keeping on mate. Step through, check everything... Debugging is hard! Hope you can track down the problem mate. Thanks for watching :)

  • @churchboy2334
    @churchboy2334 8 หลายเดือนก่อน

    where is the source code. please push it to your github repository

  • @hassan4834
    @hassan4834 7 ปีที่แล้ว

    could you please provide the source code of aes 128 bit.

    • @WhatsACreel
      @WhatsACreel  7 ปีที่แล้ว +1

      Sorry mate, I don't have a working website at the moment. Also, a recent crash lost most of the sources from these vids. Good luck, have a good one!

    • @hassan4834
      @hassan4834 7 ปีที่แล้ว

      OK no worries. btw you have done a great job thank you :)

  • @douwehuysmans5959
    @douwehuysmans5959 6 ปีที่แล้ว +1

    Please indent the code :/

  • @farrasmuttaqin9091
    @farrasmuttaqin9091 5 ปีที่แล้ว

    please implement in android studio

  • @chimpionboy
    @chimpionboy 6 ปีที่แล้ว

    About the chess game hope I would like to beat the crap out it . lol just kidding I don't have a clue about chess game.

    • @WhatsACreel
      @WhatsACreel  6 ปีที่แล้ว

      I love chess, I am terrible at it though. I'd like to make an engine, but at the moment, there is no chance. Anywho, thanks for watching, have a good one!

    • @WhatsACreel
      @WhatsACreel  6 ปีที่แล้ว

      PS. I just watched your vids, your accent is amazing dude!

  • @MrPlayermacik
    @MrPlayermacik 6 ปีที่แล้ว

    amazing video, thank you!