Hill Cipher (Encryption)

Sdílet
Vložit
  • čas přidán 1. 08. 2024
  • Network Security: Hill Cipher (Encryption)
    Topics discussed:
    1) Classical encryption techniques: Substitution and Transposition techniques.
    2) Introduction to the basics of Hill cipher.
    3) Mathematical concepts to be known in order to deal with Hill cipher encryption and decryption problems.
    4) The Hill Algorithm - Encryption and Decryption process of Hill cipher with expressions.
    5) Example - Encryption using Hill cipher for the plaintext “Pay more money” with a 3x3 matrix.
    6) Information of how to do encryption using Hill cipher using 2x2 matrix.
    7) Various ways of doing Hill cipher encryption Row Vector approach and Column vector approach.
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Contribute: www.nesoacademy.org/donate
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy.org/recommende...
    Website ► www.nesoacademy.org/
    Forum ► forum.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #NetworkSecurityByNeso #Cryptography #NetworkSecurity #HillCipher

Komentáře • 129

  • @nesoacademy
    @nesoacademy  Před 2 lety +44

    Hill Cipher can be done in 2 different ways, 3*1 and 1*3. We will get different answers following the different ways. But adopting one method will surely satisfy encryption and Decryption. Few conventions use KP and a few uses PK.

    • @kunalh910
      @kunalh910 Před rokem +2

      I dont understand ..how can two different ciphertext of same plain text can be possible .

    • @bipinverma
      @bipinverma Před rokem +1

      But according to formulas we have to adopt 3*1 if we are using c=k*p mod 26

    • @ReelzAndLaughs
      @ReelzAndLaughs Před 5 měsíci +2

      We have only method to find cipher text i.e, c=kp mod 25. Here u did it wrong..please update the video..many of the students are loosing marks because of wrong formula

    • @kirtanjaviya4306
      @kirtanjaviya4306 Před měsícem

      Bro NEY (13 4 24) THAT'S WRONG ............

    • @kirtanjaviya4306
      @kirtanjaviya4306 Před měsícem

      Answer would be (14 3 7) of (NEY)

  • @poongundran007
    @poongundran007 Před rokem +47

    Pls check the (13, 4, 24) its wrong .. The correct answer is (13, 4, 24) mod 26 is (353, 341, 605) mod 26 which is (15, 3, 7) =(P D H)

  • @lakshmiprathyushaveturi4980

    Sir please continue the complete playlist ... We just depend on your playlist rather than our faculty...

  • @ashwinivaidya4183
    @ashwinivaidya4183 Před 5 měsíci

    Very toughest algorithm understood in very simplest way ❤ love you neso❤

  • @rajeshbalasingi377
    @rajeshbalasingi377 Před 2 lety +1

    Thanks a lot sir
    It's help to done with my assignment

  • @arulbalaji431
    @arulbalaji431 Před 2 lety +10

    you are the best professor in the world , hats off bro :)

  • @Sanjaysview
    @Sanjaysview Před 4 měsíci

    I just want to say thank you so much

  • @shwetahegde8850
    @shwetahegde8850 Před 7 měsíci

    Thank you sir.. Very helpful

  • @sammymendis475
    @sammymendis475 Před rokem

    Thank you so much!

  • @pramod198
    @pramod198 Před 3 lety +2

    Sir in Network analysis we want Time domain analysis of RL and RC circuits

  • @purvababhulkar1415
    @purvababhulkar1415 Před 2 lety +2

    Thanks a lot😊

  • @beletebekele1211
    @beletebekele1211 Před rokem

    tanks your help me academically tutor.

  • @gemechu7384
    @gemechu7384 Před 3 lety

    Thankyou so much👏👏👏

  • @ilhemwalker9145
    @ilhemwalker9145 Před 2 lety

    thank you

  • @sawpaingchitmin8848
    @sawpaingchitmin8848 Před 4 měsíci

    Thank a lot sir!

  • @5_Minute.Lectures
    @5_Minute.Lectures Před 2 lety

    Thank you !!!

  • @sandynaguib4806
    @sandynaguib4806 Před rokem +1

    Is choosing the key based on any criteria other than the dimensions of the matrix ?

  • @prathameshchavan3953
    @prathameshchavan3953 Před rokem +4

    Sir, the formula for encryption is Ci = (Ki*Pi) mod 26. where, Ci = Cipher Text, Ki = Key, Pi = Plain text

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +4

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @paritoshpandey5705
    @paritoshpandey5705 Před 2 lety +2

    Can we only encrypt on only plaintext that have length as multiples of 3 if key is 3×3 ?

  • @rahulguggilam5120
    @rahulguggilam5120 Před 3 lety +8

    Bro please upload stacks completely as soon as possible our syllabus is running so fast

  • @abhisheksinghrajput1002
    @abhisheksinghrajput1002 Před 2 lety +20

    Sir the for for encryption is = K*P not P*K cause both will give different outcomes cause matrix multiplicative properties... Pls correct it .. btw thank you for the content :)

  • @rnjnmhta.catomato
    @rnjnmhta.catomato Před rokem +1

    a lot of u are saying he is wrong but he's right using the example from whitman cengage Book

  • @ShivamPatel-pq4vt
    @ShivamPatel-pq4vt Před 3 lety +25

    Can you please continue and finish this series fast?! If I have to pay I will

  • @manjunathkavishetti4619
    @manjunathkavishetti4619 Před 2 lety +4

    Why did u take p1 p2 p3 in row wise..why not in column wise..?

  • @utsavseth6573
    @utsavseth6573 Před rokem +1

    beautifully explained

  • @diwakar542
    @diwakar542 Před rokem +2

    Should have used KP approach. Most of the textbooks follow KP approach as well as most encoders and decoders. I'm 1 year late to know the fact. All the damage haven't been made that were to be made.

  • @NeemaPaul-pn4uv
    @NeemaPaul-pn4uv Před rokem

    What if plain text ended with 2 letter and its three cross three matrix....am asking about the letter added will not have effect when generating the cipher text?

  • @ashazra2559
    @ashazra2559 Před 3 lety +8

    The cipher text for pay is LNS, why is yours different?

  • @babydisyam3508
    @babydisyam3508 Před 7 měsíci

    Very very so much👍 ❤❤❤❤❤

  • @DasEtwas
    @DasEtwas Před 3 lety

    nice video

  • @vishwasshukla8687
    @vishwasshukla8687 Před rokem +1

    i think there is a problem with this method.
    i saw other videos videos K.P here it is P.K, both are different, which method is correct.
    Plz Explain...

  • @sameer282
    @sameer282 Před rokem +1

    IN VIDEO AT 16:30 THE VALUE OF P1 IS 353 ONCE CHECK

  • @ashiksaleem360
    @ashiksaleem360 Před 2 lety +3

    I think this method is wrong. cause you multiplied 1*3 x 3*3 instead of 3*3 x 3*1. also i check using a online hill cipher tool

  • @yey7718
    @yey7718 Před 2 lety +3

    This is wrong answer …. The ciphertext is :LNS HDL EWM TRW , you missed when you multiplication the row with a column its wrong the right solution its a Row with Row

  • @user-ej8du9ei3t
    @user-ej8du9ei3t Před 6 měsíci

    What about the encryption of spaces between each words?

  • @Rimi666
    @Rimi666 Před 2 lety +2

    I don't understand the division area for example 303/26 is 11 but in the video he said 17 please help

    • @valkyrex5262
      @valkyrex5262 Před 2 lety

      17 is the remainder, 303÷26=11 remainder 17

  • @shipenalamech4382
    @shipenalamech4382 Před 2 lety +2

    Sir I don't understand from final calculation divided by 26. I am not getting same amount.

    • @valkyrex5262
      @valkyrex5262 Před 2 lety +2

      303÷26=11 remainder 17,
      303÷26=11, 11x26=286, 303-286=17
      that's why 17, because its from the remainder

  • @Hecker_bro
    @Hecker_bro Před 6 měsíci +1

    12:40 bhai tune 3x3 and 1x3 matrix multiply kaise kar diya??

  • @AnshumanPal-pk3ei
    @AnshumanPal-pk3ei Před rokem

    Sir the cipertext of of "mor" is different from what you are saying

  • @AnshumanPal-pk3ei
    @AnshumanPal-pk3ei Před rokem

    If we divide 532by 26 the answer is 20 point something

  • @dr.anitapradhan5489
    @dr.anitapradhan5489 Před 2 lety

    MAM PLEASE POST FOR MORE VIDEOS

  • @soundarrajan8311
    @soundarrajan8311 Před 2 lety +1

    If there is no key value what can i do would you pls explain

  • @CSsaThishR
    @CSsaThishR Před 7 měsíci

    How to insert the filler character if plaintext ends with two digit

  • @rohitpatle2312
    @rohitpatle2312 Před 21 dnem +4

    Hamari ma'am bhi yahi se padh ke padha rahi hai class mai 😅😅

  • @hetdoshi9385
    @hetdoshi9385 Před 6 měsíci

    in the calculation of encryption of emy you have make misktate but you dont correct it how confusing for any beginer solve it and then your ans is correct so it totally confusing for any beginer

  • @dr.anitapradhan5489
    @dr.anitapradhan5489 Před 2 lety

    MAM IF FOX & XEROX WILL BE THE PLAINTEXT HOW TOMAKE PAIR

  • @Mohanad_Adnan
    @Mohanad_Adnan Před rokem +9

    Hi Sir
    may be there is a mistake in
    Encryption of ney is (353 341 605)
    not (348 312 538)

  • @TechAsad
    @TechAsad Před 4 měsíci

    Plain text should be in column not in row

  • @AyeshaSahelRahamathISE--

    I got the answer to be RRLMWBKMSPDH
    instead of RRLMW A KMSPDH
    I’m not getting 0
    It’s 312mod 26 which means 12 which would give M & not A
    Correct me if I’m wrong

    • @yogeshkumar5307
      @yogeshkumar5307 Před 2 lety

      while grouping if we get one or two letters extra, then how to proceed.. eg. if plain text .. my name is joe... grp1: myn grp2: ame grp3: isj .. now what to do with oe?

    • @haricharan2836
      @haricharan2836 Před 2 lety

      u did 312 mod 26 calculation wrong the remainder should be taken so 0 is correct

  • @shreenathsp7016
    @shreenathsp7016 Před rokem

    13:35 its qql not rrl

  • @ganeshbagul9732
    @ganeshbagul9732 Před 2 měsíci

    RSA.py
    import math

    # step 1
    p = int(input(" - Enter a prime number (17, 19, 23, etc): "))
    q = int(input(" - Enter another prime number (Not one you entered above): "))

    # step 2
    n = p*q
    print("n =", n)

    # step 3
    phi = (p-1)*(q-1)

    # step 4
    e = 2
    while(e

  • @irtiqamuzaffarzaki3706

    Last calculation is incorrect needs to b rectified

  • @kirthika821
    @kirthika821 Před 11 dny

    How to get the ppt ??

  • @sharikatasnim1198
    @sharikatasnim1198 Před 2 lety +6

    This isnt the correct method of encryption. The plain text matrix was supposed to be 3x1 matrix and not 1x3. What Stalling's book says is: the plaintext should be converted to coloumn vector of length k, if the key matrix is a k×k matrix.
    This is why even the answer is not correct here.

    • @nesoacademy
      @nesoacademy  Před 2 lety +15

      Hill Cipher can be done in 2 different ways, 3*1 and 1*3. We will get different answers following the different ways. But adopting one method will surely satisfy encryption and Decryption.

    • @rnjnmhta.catomato
      @rnjnmhta.catomato Před rokem

      dono shi h bhen

    • @beborani1660
      @beborani1660 Před rokem

      yeah it will be done in column but giving me good concept

    • @mdmaaz7817
      @mdmaaz7817 Před 6 měsíci

      Issko koi tappad marke chup karo

  • @subrajitbhowmik706
    @subrajitbhowmik706 Před 5 měsíci

    how L is 11 in PAY

  • @poojapoojadhapte1430
    @poojapoojadhapte1430 Před měsícem

    😊

  • @syedmunawerhassan9994
    @syedmunawerhassan9994 Před 3 lety

    You have missed spaces how spaces are encrypted or decrypted ? Why x is padded why not y or what if last letter is x then should we pad x ? Or other character ?

    • @c3a118
      @c3a118 Před 2 lety

      spaces are not encrypted.
      do each word separately i suppose

    • @yogeshkumar5307
      @yogeshkumar5307 Před 2 lety

      @@c3a118 while grouping if we get one or two letters extra, then how to proceed.. eg. if plain text .. my name is joe... grp1: myn grp2: ame grp3: isj .. now what to do with oe?

  • @brianjoonjiangoh9206
    @brianjoonjiangoh9206 Před 2 lety +45

    Lol, r u sure u teaching the correct thing? I think the encryption for "Pay more money" is "lns hdle wmtrw" All these people are following blindly lol.

    • @ashiksaleem360
      @ashiksaleem360 Před 2 lety +3

      Yup the video is wrong. verified from online hill cipher decoder. i think the error is when he muliplies the matrix. coz 1*3 x 3*3 is not the same as 3*3 x 3*1 and neso is muliplying matrices using 1*3 x 3*3

    • @JavedIqbal-fb4dk
      @JavedIqbal-fb4dk Před rokem

      @@smilealways7344 bilkul

    • @cst030santhoshm4
      @cst030santhoshm4 Před rokem +5

      The method is correct but plain text should be taken in the order 3*1 but here it is taken in the form of 1*3 thats why there is a such variation in the chipertext

    • @bulliraju5439
      @bulliraju5439 Před rokem

      @@cst030santhoshm4 we can't multiply if we take (1*3)

    • @scooby-doo1778
      @scooby-doo1778 Před měsícem

      I agree,
      Plaintxt and Ciphertxt matrices should always be column matrices

  • @mhsamhsa5456
    @mhsamhsa5456 Před rokem

    i hope translate for arabic

  • @TechnicalWaniyt
    @TechnicalWaniyt Před 11 měsíci

    cipher text is wrong bro

  • @AnshumanPal-pk3ei
    @AnshumanPal-pk3ei Před rokem

    You are saying 12

  • @skbala3107
    @skbala3107 Před 9 měsíci

    Ney answer wrong

  • @motivation_with_harsh

    Answer to this question = RRLMWBKAQPDH

  • @jaypatel6770
    @jaypatel6770 Před 4 měsíci +1

    lnshdlewmtrw

  • @mahirchauhan213
    @mahirchauhan213 Před rokem

    Formula is false
    True formula is :k*p(mod 26 )

  • @MuhammadFaez1
    @MuhammadFaez1 Před 9 měsíci

    you did the calculation wrong

  • @shivvi__
    @shivvi__ Před 7 měsíci

    Actually 15*17+0*21+24*2 is 255 and you are saying it as 303 lol

    • @rodzay8771
      @rodzay8771 Před 4 měsíci

      It’s “303” 255*48 = 303

  • @mercykimaiyo6338
    @mercykimaiyo6338 Před 9 měsíci

    This is wrong the multiplication of the matrix is not it

  • @Adonis08
    @Adonis08 Před 9 měsíci

    🔴🔴🔴🔴🔴🔴🔴 This is Wrong!!!
    just one change K*P instead of P*K .. otherwise you will get a Wrong answer
    btw Thank you!!!

  • @tusharjeena7081
    @tusharjeena7081 Před rokem

    It is wrong method

  • @omaralbalouli7452
    @omaralbalouli7452 Před 2 lety +3

    Your encryption is wrong you have to multiply every message pair with the row not the column
    I advice you to delete the video and make another one
    Thanks for the good videos

    • @nesoacademy
      @nesoacademy  Před 2 lety

      Hill Cipher can be done in 2 different ways, 3*1 and 1*3. We will get different answers following the different ways. But adopting one method will surely satisfy encryption and Decryption.

  • @naveenbabusunkoju6068

    With respect i want to let you know for ney
    353 341 605 but may be some editing error 348 84 48 displayed calculations

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +2

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +2

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +2

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +2

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +2

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +2

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +1

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +1

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭

  • @itz_my_planet4202
    @itz_my_planet4202 Před 3 lety +1

    Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭