Hill Cipher (Encryption)
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
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.
I dont understand ..how can two different ciphertext of same plain text can be possible .
But according to formulas we have to adopt 3*1 if we are using c=k*p mod 26
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
Bro NEY (13 4 24) THAT'S WRONG ............
Answer would be (14 3 7) of (NEY)
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)
Sir please continue the complete playlist ... We just depend on your playlist rather than our faculty...
Paid lectures
😂😂😂😂
😅😂
Even college faculty depend on these videos
Very toughest algorithm understood in very simplest way ❤ love you neso❤
Thanks a lot sir
It's help to done with my assignment
you are the best professor in the world , hats off bro :)
I just want to say thank you so much
Thank you sir.. Very helpful
Thank you so much!
Sir in Network analysis we want Time domain analysis of RL and RC circuits
Thanks a lot😊
tanks your help me academically tutor.
Thankyou so much👏👏👏
thank you
Thank a lot sir!
Thank you !!!
Is choosing the key based on any criteria other than the dimensions of the matrix ?
Sir, the formula for encryption is Ci = (Ki*Pi) mod 26. where, Ci = Cipher Text, Ki = Key, Pi = Plain text
both
Column vector , Row vector same thing .
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Can we only encrypt on only plaintext that have length as multiples of 3 if key is 3×3 ?
Bro please upload stacks completely as soon as possible our syllabus is running so fast
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 :)
Lora
Yes exactly
a lot of u are saying he is wrong but he's right using the example from whitman cengage Book
Can you please continue and finish this series fast?! If I have to pay I will
Whoa 😮
"pay more money" lol
Why did u take p1 p2 p3 in row wise..why not in column wise..?
beautifully explained
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.
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?
The cipher text for pay is LNS, why is yours different?
Very very so much👍 ❤❤❤❤❤
nice video
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...
IN VIDEO AT 16:30 THE VALUE OF P1 IS 353 ONCE CHECK
P1 value
YEP 221 + 84 + 48 =353 @@sameer282
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
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
What about the encryption of spaces between each words?
I don't understand the division area for example 303/26 is 11 but in the video he said 17 please help
17 is the remainder, 303÷26=11 remainder 17
Sir I don't understand from final calculation divided by 26. I am not getting same amount.
303÷26=11 remainder 17,
303÷26=11, 11x26=286, 303-286=17
that's why 17, because its from the remainder
12:40 bhai tune 3x3 and 1x3 matrix multiply kaise kar diya??
Sir the cipertext of of "mor" is different from what you are saying
If we divide 532by 26 the answer is 20 point something
MAM PLEASE POST FOR MORE VIDEOS
If there is no key value what can i do would you pls explain
pray
How to insert the filler character if plaintext ends with two digit
Hamari ma'am bhi yahi se padh ke padha rahi hai class mai 😅😅
Copy paste 😅
yup it's right bro 😂
is se accha to youtube ka premium membership le lete ads to skip ho jate
😅
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
MAM IF FOX & XEROX WILL BE THE PLAINTEXT HOW TOMAKE PAIR
Hi Sir
may be there is a mistake in
Encryption of ney is (353 341 605)
not (348 312 538)
Yeah
Yes I also find same for ney
353 341 605 but may be some editing error 348 84 48
Exactly same issue
Plain text should be in column not in row
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
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?
u did 312 mod 26 calculation wrong the remainder should be taken so 0 is correct
13:35 its qql not rrl
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
Last calculation is incorrect needs to b rectified
How to get the ppt ??
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.
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.
dono shi h bhen
yeah it will be done in column but giving me good concept
Issko koi tappad marke chup karo
how L is 11 in PAY
😊
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 ?
spaces are not encrypted.
do each word separately i suppose
@@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?
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.
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
@@smilealways7344 bilkul
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
@@cst030santhoshm4 we can't multiply if we take (1*3)
I agree,
Plaintxt and Ciphertxt matrices should always be column matrices
i hope translate for arabic
cipher text is wrong bro
You are saying 12
Ney answer wrong
Answer to this question = RRLMWBKAQPDH
lnshdlewmtrw
Formula is false
True formula is :k*p(mod 26 )
you did the calculation wrong
Actually 15*17+0*21+24*2 is 255 and you are saying it as 303 lol
It’s “303” 255*48 = 303
This is wrong the multiplication of the matrix is not it
🔴🔴🔴🔴🔴🔴🔴 This is Wrong!!!
just one change K*P instead of P*K .. otherwise you will get a Wrong answer
btw Thank you!!!
It is wrong method
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
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.
With respect i want to let you know for ney
353 341 605 but may be some editing error 348 84 48 displayed calculations
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭
Sir plz continue the series of discrete mathematics 😭😭😭😭😭😭