Hill Cipher (Encryption)

  Рет қаралды 465,891

Neso Academy

Neso Academy

3 жыл бұрын

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

Пікірлер: 129
@nesoacademy
@nesoacademy 2 жыл бұрын
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 Жыл бұрын
I dont understand ..how can two different ciphertext of same plain text can be possible .
@bipinverma
@bipinverma Жыл бұрын
But according to formulas we have to adopt 3*1 if we are using c=k*p mod 26
@ReelzAndLaughs
@ReelzAndLaughs 5 ай бұрын
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 Ай бұрын
Bro NEY (13 4 24) THAT'S WRONG ............
@kirtanjaviya4306
@kirtanjaviya4306 Ай бұрын
Answer would be (14 3 7) of (NEY)
@poongundran007
@poongundran007 Жыл бұрын
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
@lakshmiprathyushaveturi4980 3 жыл бұрын
Sir please continue the complete playlist ... We just depend on your playlist rather than our faculty...
@AkashDeep-rr6jo
@AkashDeep-rr6jo 2 жыл бұрын
Paid lectures
@l3nox_music
@l3nox_music Жыл бұрын
😂😂😂😂
@Supreetvajjaramatti
@Supreetvajjaramatti 6 ай бұрын
😅😂
@nice6524
@nice6524 5 ай бұрын
Even college faculty depend on these videos
@ashwinivaidya4183
@ashwinivaidya4183 5 ай бұрын
Very toughest algorithm understood in very simplest way ❤ love you neso❤
@Sanjaysview
@Sanjaysview 4 ай бұрын
I just want to say thank you so much
@rajeshbalasingi377
@rajeshbalasingi377 2 жыл бұрын
Thanks a lot sir It's help to done with my assignment
@shwetahegde8850
@shwetahegde8850 7 ай бұрын
Thank you sir.. Very helpful
@arulbalaji431
@arulbalaji431 2 жыл бұрын
you are the best professor in the world , hats off bro :)
@sammymendis475
@sammymendis475 Жыл бұрын
Thank you so much!
@purvababhulkar1415
@purvababhulkar1415 2 жыл бұрын
Thanks a lot😊
@gemechu7384
@gemechu7384 3 жыл бұрын
Thankyou so much👏👏👏
@sawpaingchitmin8848
@sawpaingchitmin8848 4 ай бұрын
Thank a lot sir!
@beletebekele1211
@beletebekele1211 Жыл бұрын
tanks your help me academically tutor.
@5_Minute.Lectures
@5_Minute.Lectures 2 жыл бұрын
Thank you !!!
@utsavseth6573
@utsavseth6573 Жыл бұрын
beautifully explained
@ShivamPatel-pq4vt
@ShivamPatel-pq4vt 3 жыл бұрын
Can you please continue and finish this series fast?! If I have to pay I will
@slayerdangelo234
@slayerdangelo234 2 жыл бұрын
Whoa 😮
@Mp-lw8tw
@Mp-lw8tw Жыл бұрын
"pay more money" lol
@ilhemwalker9145
@ilhemwalker9145 2 жыл бұрын
thank you
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@rahulguggilam5120
@rahulguggilam5120 3 жыл бұрын
Bro please upload stacks completely as soon as possible our syllabus is running so fast
@DasEtwas
@DasEtwas 3 жыл бұрын
nice video
@rnjnmhta.catomato
@rnjnmhta.catomato Жыл бұрын
a lot of u are saying he is wrong but he's right using the example from whitman cengage Book
@pramod198
@pramod198 3 жыл бұрын
Sir in Network analysis we want Time domain analysis of RL and RC circuits
@abhisheksinghrajput1002
@abhisheksinghrajput1002 2 жыл бұрын
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 :)
@Yametekudasaai
@Yametekudasaai Жыл бұрын
Lora
@NDORASRAVANASANDHYA
@NDORASRAVANASANDHYA 5 ай бұрын
Yes exactly
@babydisyam3508
@babydisyam3508 7 ай бұрын
Very very so much👍 ❤❤❤❤❤
@paritoshpandey5705
@paritoshpandey5705 2 жыл бұрын
Can we only encrypt on only plaintext that have length as multiples of 3 if key is 3×3 ?
@sandynaguib4806
@sandynaguib4806 Жыл бұрын
Is choosing the key based on any criteria other than the dimensions of the matrix ?
@prathameshchavan3953
@prathameshchavan3953 Жыл бұрын
Sir, the formula for encryption is Ci = (Ki*Pi) mod 26. where, Ci = Cipher Text, Ki = Key, Pi = Plain text
@rnjnmhta.catomato
@rnjnmhta.catomato Жыл бұрын
both
@Justanerd239
@Justanerd239 7 ай бұрын
Column vector , Row vector same thing .
@diwakar542
@diwakar542 Жыл бұрын
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 Жыл бұрын
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 3 жыл бұрын
The cipher text for pay is LNS, why is yours different?
@manjunathkavishetti4619
@manjunathkavishetti4619 2 жыл бұрын
Why did u take p1 p2 p3 in row wise..why not in column wise..?
@yey7718
@yey7718 2 жыл бұрын
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
@vishwasshukla8687
@vishwasshukla8687 Жыл бұрын
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...
@ashiksaleem360
@ashiksaleem360 2 жыл бұрын
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
@Hecker_bro
@Hecker_bro 6 ай бұрын
12:40 bhai tune 3x3 and 1x3 matrix multiply kaise kar diya??
@dr.anitapradhan5489
@dr.anitapradhan5489 2 жыл бұрын
MAM PLEASE POST FOR MORE VIDEOS
@Rimi666
@Rimi666 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 2 жыл бұрын
17 is the remainder, 303÷26=11 remainder 17
@user-ej8du9ei3t
@user-ej8du9ei3t 6 ай бұрын
What about the encryption of spaces between each words?
@sameer282
@sameer282 Жыл бұрын
IN VIDEO AT 16:30 THE VALUE OF P1 IS 353 ONCE CHECK
@sameer282
@sameer282 Жыл бұрын
P1 value
@ferhangursum1693
@ferhangursum1693 8 ай бұрын
YEP 221 + 84 + 48 =353 @@sameer282
@AnshumanPal-pk3ei
@AnshumanPal-pk3ei Жыл бұрын
If we divide 532by 26 the answer is 20 point something
@AnshumanPal-pk3ei
@AnshumanPal-pk3ei Жыл бұрын
Sir the cipertext of of "mor" is different from what you are saying
@CSsaThishR
@CSsaThishR 7 ай бұрын
How to insert the filler character if plaintext ends with two digit
@shipenalamech4382
@shipenalamech4382 2 жыл бұрын
Sir I don't understand from final calculation divided by 26. I am not getting same amount.
@valkyrex5262
@valkyrex5262 2 жыл бұрын
303÷26=11 remainder 17, 303÷26=11, 11x26=286, 303-286=17 that's why 17, because its from the remainder
@soundarrajan8311
@soundarrajan8311 2 жыл бұрын
If there is no key value what can i do would you pls explain
@anirbansaha2104
@anirbansaha2104 6 ай бұрын
pray
@rohitpatle2312
@rohitpatle2312 23 күн бұрын
Hamari ma'am bhi yahi se padh ke padha rahi hai class mai 😅😅
@Yash_kamble2201
@Yash_kamble2201 23 күн бұрын
Copy paste 😅
@spoideegaming6168
@spoideegaming6168 23 күн бұрын
yup it's right bro 😂 is se accha to youtube ka premium membership le lete ads to skip ho jate
@RVGAMING-ot3bf
@RVGAMING-ot3bf 23 күн бұрын
😅
@Mohanad_Adnan
@Mohanad_Adnan Жыл бұрын
Hi Sir may be there is a mistake in Encryption of ney is (353 341 605) not (348 312 538)
@malavikagowda5809
@malavikagowda5809 Жыл бұрын
Yeah
@naveenbabusunkoju6068
@naveenbabusunkoju6068 Жыл бұрын
Yes I also find same for ney 353 341 605 but may be some editing error 348 84 48
@beborani1660
@beborani1660 Жыл бұрын
Exactly same issue
@dr.anitapradhan5489
@dr.anitapradhan5489 2 жыл бұрын
MAM IF FOX & XEROX WILL BE THE PLAINTEXT HOW TOMAKE PAIR
@hetdoshi9385
@hetdoshi9385 7 ай бұрын
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
@kirthika821
@kirthika821 12 күн бұрын
How to get the ppt ??
@irtiqamuzaffarzaki3706
@irtiqamuzaffarzaki3706 2 жыл бұрын
Last calculation is incorrect needs to b rectified
@sharikatasnim1198
@sharikatasnim1198 2 жыл бұрын
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 2 жыл бұрын
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 Жыл бұрын
dono shi h bhen
@beborani1660
@beborani1660 Жыл бұрын
yeah it will be done in column but giving me good concept
@mdmaaz7817
@mdmaaz7817 6 ай бұрын
Issko koi tappad marke chup karo
@TechAsad
@TechAsad 4 ай бұрын
Plain text should be in column not in row
@AyeshaSahelRahamathISE--
@AyeshaSahelRahamathISE-- 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
u did 312 mod 26 calculation wrong the remainder should be taken so 0 is correct
@shreenathsp7016
@shreenathsp7016 Жыл бұрын
13:35 its qql not rrl
@brianjoonjiangoh9206
@brianjoonjiangoh9206 2 жыл бұрын
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 2 жыл бұрын
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 Жыл бұрын
@@smilealways7344 bilkul
@cst030santhoshm4
@cst030santhoshm4 Жыл бұрын
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 Жыл бұрын
@@cst030santhoshm4 we can't multiply if we take (1*3)
@scooby-doo1778
@scooby-doo1778 Ай бұрын
I agree, Plaintxt and Ciphertxt matrices should always be column matrices
@poojapoojadhapte1430
@poojapoojadhapte1430 Ай бұрын
😊
@subrajitbhowmik706
@subrajitbhowmik706 5 ай бұрын
how L is 11 in PAY
@ganeshbagul9732
@ganeshbagul9732 3 ай бұрын
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
@syedmunawerhassan9994
@syedmunawerhassan9994 3 жыл бұрын
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 2 жыл бұрын
spaces are not encrypted. do each word separately i suppose
@yogeshkumar5307
@yogeshkumar5307 2 жыл бұрын
@@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?
@mhsamhsa5456
@mhsamhsa5456 Жыл бұрын
i hope translate for arabic
@TechnicalWaniyt
@TechnicalWaniyt 11 ай бұрын
cipher text is wrong bro
@AnshumanPal-pk3ei
@AnshumanPal-pk3ei Жыл бұрын
You are saying 12
@skbala3107
@skbala3107 9 ай бұрын
Ney answer wrong
@motivation_with_harsh
@motivation_with_harsh Жыл бұрын
Answer to this question = RRLMWBKAQPDH
@jaypatel6770
@jaypatel6770 4 ай бұрын
lnshdlewmtrw
@mahirchauhan213
@mahirchauhan213 Жыл бұрын
Formula is false True formula is :k*p(mod 26 )
@MuhammadFaez1
@MuhammadFaez1 9 ай бұрын
you did the calculation wrong
@mercykimaiyo6338
@mercykimaiyo6338 9 ай бұрын
This is wrong the multiplication of the matrix is not it
@tusharjeena7081
@tusharjeena7081 Жыл бұрын
It is wrong method
@shivvi__
@shivvi__ 7 ай бұрын
Actually 15*17+0*21+24*2 is 255 and you are saying it as 303 lol
@rodzay8771
@rodzay8771 4 ай бұрын
It’s “303” 255*48 = 303
@omaralbalouli7452
@omaralbalouli7452 2 жыл бұрын
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 2 жыл бұрын
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.
@Adonis08
@Adonis08 9 ай бұрын
🔴🔴🔴🔴🔴🔴🔴 This is Wrong!!! just one change K*P instead of P*K .. otherwise you will get a Wrong answer btw Thank you!!!
@naveenbabusunkoju6068
@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 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
@itz_my_planet4202
@itz_my_planet4202 3 жыл бұрын
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Hill Cipher (Decryption)
30:03
Neso Academy
Рет қаралды 313 М.
Polyalphabetic Cipher (Vigenère Cipher)
13:56
Neso Academy
Рет қаралды 328 М.
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 1,7 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 13 МЛН
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
Monoalphabetic Cipher
15:59
Neso Academy
Рет қаралды 319 М.
Caesar Cipher (Part 1)
13:23
Neso Academy
Рет қаралды 489 М.
Hashing Algorithms and Security - Computerphile
8:12
Computerphile
Рет қаралды 1,5 МЛН
CIA Triad
16:08
Neso Academy
Рет қаралды 291 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 1,7 МЛН