I've been looking all over to find someone to explain the frequency analysis step. You're video is great and well explained. Keep up the good work
@SittingTheApple2 жыл бұрын
This is great. I majored in mathematics and, still today, dabble around in cryptography just for fun. I really wish these helpful videos were around when I was in school.
@NaiZYaJ5 ай бұрын
Only found it cuz of ego
@tsvetkovamaria524 жыл бұрын
Thank you for the awesome video. From your video I learned what it means "vigenere cypher is vulnerable to frequency analysis", which I didn't get from the book Serious Cryptography.
@jasvlogs91427 жыл бұрын
This was so helpful, used this to help me with my technology assignment and I got an A!
@antigonipapapetrou94334 жыл бұрын
Good Job!
@manjimaspramod65024 жыл бұрын
Great 👍👍👍
@IHateYoutubeHandlesVeryMuch3 жыл бұрын
@@jedidiahwesley8522 and you too
@Acryte5 жыл бұрын
Was just tasked with writing a vigenere crack on Tuesday and due Thursday morning in an unfamiliar programming language. Couldn't really test for accuracy after seeing that the key length was the appropriate size, I trucked on until the end and... IT WORKED! Thanks for the help! :)
@MKAB5038 жыл бұрын
damn that's a lotta steps. I am learning cryptography on my free time. I always thought it was interesting, but I never realized how much work it was. The Ceaser cipher is way easier. Any hints for saving time, yet still getting an accurate answer?
@ddxfraxinusdne8 жыл бұрын
Computers. Computer programs save time. I'f you're interested in math and crypto and happen to be into programming, I would recommend learning to also use Maple or Matlab or the like. Good luck with your learning!
@MKAB5038 жыл бұрын
Thanks!
@sobbleissad70614 жыл бұрын
Yeah all the complicated steps and make computer do the iteration thats why math strong with computer science
@DragonRazor92833 жыл бұрын
make a Python algorithm that’s able to decrypt messages in an instant using the Vigenere Cipher
@jacktraveller82906 жыл бұрын
So, I do LARP, and last year a guild I'm found out about a plot which could have serious repercussions for all factions in the game. We tracked the plotters and intercepted a coded message, and the guild launched an investigation. Unfortunately, at one of the events, the guy leading the investigation was killed, and the head of the guild gave me this guy's diary, with his notes on the plot and a copy of the coded message and asked me to figure it out. So, I've been scouring the internet trying to figure out how to decrypt this message (for context I don't know anything about cryptography). It's not a caesar cipher. I'm struggling to guess two letter words because it seems like there aren't enough vowels in english to make them work. Frequency analysis doesn't seem to yield anything conclusive. Then I heard about polyalphabetic encryption. This was the first video I watched on it, and I've just spent 4 hours working out a key for the message. Finally came up with a two number key and... *drumroll* it doesn't work when applied to the message. BUT. I don't feel like it was a waste of time, because I had fun working out the key and trying to solve the puzzle, & even if my guess about the type of cipher was wrong, at least that's vigenere eliminated from the list. So thanks for helping me out and giving me an evening's entertainment. Great video. :)
@jesseharding32548 жыл бұрын
You lost me when you stopped using the primary example, no matter how many times I re-watch this.
@valkon_8 жыл бұрын
+Jesse Harding Exactly...I was very happy with her explanations but when I saw A, B and C I was disappointed
@cosma_one8 жыл бұрын
+Valkon katse kala
@godfreycharles36006 жыл бұрын
Even me ,I experience the same pain as you.
@antasmax54805 жыл бұрын
Ikr
@awaismanzoor29205 жыл бұрын
@@antasmax5480 you can not break this cipher using a text of length
@PuneetKumar-rr2vt9 жыл бұрын
Multitude of resources .. This is the only one that made me understand :)
@ddxfraxinusdne9 жыл бұрын
+Puneet Kumar I'm so glad you got it!
@carolinesiniard14473 жыл бұрын
This was super helpful but I’m completely lost on the “frequency” of the letters: A = .10; B = .20; C = .70 but that doesn’t correlate with the frequency in which those letters appear in the example cypher (as A&B appear 4 times and C 3) nor the English alphabet (as each letter only appears once) so where is the “frequency” derived from? Side note: what’s the name of the mathematical proof used when finding the greatest sum of products for that combination of numbers provided? I believe the example was 1, 2, 5 and 1, 2, 5. Thank you!
@ahmadghaemi21922 жыл бұрын
It is a made up example in this case since we assume a language with only three letters (9:05), but my guess is that it is usually derived through analyzing a large amount of texts in a language and seeing how often each letter appears on average in each of them.
@blijore2724 күн бұрын
@@ahmadghaemi2192 Sorry bit late to the party, so that means on a real english cipher, we would use 8.4966% for the letter A ?
@piknos338121 күн бұрын
@@blijore27 Yeah pretty much
@pawelmisiak54815 жыл бұрын
there is a mistake, i am sure someone caught it but on 4:00 on light blue row you have 0 where you should have 1
@oldchannelforgottennewchan40888 жыл бұрын
im just 14 and not understanding a thing just learning for gravity falls
@dallashenderson69968 жыл бұрын
+PIXELATED- BLOCK In every single Gravity Falls cipher, the key is given to you. Alex isn't a cruel man.
@oldchannelforgottennewchan40888 жыл бұрын
+Dallas Henderson weirdnaggedon part 3 the new one has alot of codes and keys that can be decoded
@okfine90776 жыл бұрын
just?
@izaleones28495 жыл бұрын
I'm just ten but I can understand it
@crystalclown965 жыл бұрын
LMAO I remember doing that when the show first started airing
@yevheniyk53585 жыл бұрын
What is the math principle behind the first part, the discovering of the length?
@helloworld-tx6qp4 жыл бұрын
Index of Coincidence
@DoYouHaveAName16 жыл бұрын
Thank you for all the explanations, you really simplified it and it really helped me understand. I'm making a game for my friend and she is going to have to take her time with this
@maxdonahue2105 жыл бұрын
I have a cypher that the pattern of large numbers is very random. It’s a 50 character message but the coincidences are always low. Never more than 6
@angelicaungurean8834 жыл бұрын
Max Donahue same
@suqlainsherazi47663 жыл бұрын
You are so great at teaching .. Keep it up.. Amazing way of teaching..
@mirmohsinali7325 жыл бұрын
I don't understand why you only did the shift twice . Like you said 0.60 is the largest but 0.26 is also greater than 0.24 so why not stop there and fill the blank for the first letter of the key as 1?
@saracapdevila22215 жыл бұрын
its because she found out the length of the key and therefore had to shift it 3 times (the 4th would've been the start of the key again)
@christineyvonnemercado43275 жыл бұрын
Hello!😊 Can you teach me how to get the alphabet frequencies (how did you know that a has a frequency of .10 and so on)? I'm stuck with that part. Thank you
@rahuldham83964 жыл бұрын
Christine Yvonne Mercado me too
@aaronmedel21744 жыл бұрын
hey did you ever find the answer to this I am also confused on this part
@daboss54474 жыл бұрын
You dont have to know, have a chart with you handy, unless you want to memorize all of them. There is no way of getting an accurate calculation of the frequency without hundreds of thousands of words. So either memorize, or have a chart.
@mikeramirez16955 жыл бұрын
It was as clear as mud but it was also very interesting. I think this process could be better explained on an Excel spreadsheet. You should consider a re-do. If you do, I would watch it.
@pyotrleflegin72557 жыл бұрын
You obviously know what you are doing but you really haven't explained it well enough for my old brain. Perhaps a Kasiski search might be better -- if you had a much longer ciphertext, of course. Thank you for trying so hard to tell us about your way of setting about the search!
@averageevil8012 жыл бұрын
Hey awesome video, but if someone doesn’t mind helping I don’t quite understand what it means that the frequencies of a, b, and c are .10, .20, and .70 or how we know that
@Rajath_2001 Жыл бұрын
Thank you so much ❣️ I had a very hard time understanding this concept, thanks to you its done now ✅
@Rajath_2001 Жыл бұрын
@ROROROSEEEEE HAPPY BDAY!!!! That is the frequency of usage of alphabets in the English language. It's constant.... In any examination, they will specify the frequency of each letter in the question itself, no need to memorize it.
@Rajath_2001 Жыл бұрын
@ROROROSEEEEE HAPPY BDAY!!!! I don't know about the general usage of the English language. But, in the example she gave; yes, C is more frequent
@adaiban5102 Жыл бұрын
.10, .20, and .70 is the frequency of those letters in the cipher text without counting every 4?
@gokou00179 жыл бұрын
oh thank you very much ! i was hearing the video at coursea about this topic like more than 5 times and understood nothing ,til now ,now i get it.thank you teacher
@ddxfraxinusdne9 жыл бұрын
michael jordan So glad it helped!!
@kitfisto54163 жыл бұрын
One thing I didn't quite get was how you find the original frequency of the sequence e.g in yours it was a=10 b=20 c=70, how did you get that
@coderdimhat68218 жыл бұрын
All understood. Only a single thing: How did you find the value of a, b, c as .10, . 20 & .70. Please elaborate. thanks..
@ddxfraxinusdne8 жыл бұрын
Those are the "normal" frequencies in the hypothetical language. For the normal frequencies in the English language see: www.math.cornell.edu/~mec/2003-2004/cryptography/subs/frequencies.html
@Mindraker18 жыл бұрын
Yeah, she was working with a theoretical example with only four letters. Were she to draw out the frequencies for all 26 letters on a dry erase board, this video would have been painful.
@siddharthmishra21236 жыл бұрын
but how 0.1 0.2 and 0.7
@jami47246 жыл бұрын
only three* letters
@sdetwil6 жыл бұрын
In her pretend language of only three letters you would see the letter C 70% of the time, B 20% and A %10. She just picked whatever she felt like because it's a pretend language meant to make the example shorter and easier
@5488suman6 жыл бұрын
Very nicely illustrated! Thank you so much.
@adambakas138 ай бұрын
this seems like the core complicated method of doing it.
@roumellatagaro20564 жыл бұрын
anyone here in 2020? like u know.... during quarantine?
@danielthompson22993 жыл бұрын
me in 2021
@Advit_KRXZY9 күн бұрын
@@danielthompson2299 me in 2024
@srinjoychoudhury22467 жыл бұрын
Great explanation i wanted to know that 2 things:What is the math behind finding the length like why do we follow that algorithm secondly thier is a slight chance right that the key we found may not be correct(a very small chance as it is all statistical) in that case what how do we proceed further.
@UnreaL9 Жыл бұрын
How do you find the length of the key if the cipher text is very long?
@Jaime_Protein_Cannister9 жыл бұрын
Say in this example knowing the key length and hunting for key numbers , you're only using A-B-C to multiply the two frequency tables. If your ciphertext after counting up all the letters uses only 14 while the alphabet is 26 long. Do you simply input 0 for all the missing characters?
@ddxfraxinusdne9 жыл бұрын
+MoralReformXGames If I understand your question correctly, then yes. The reason for counting the letters is to find the frequency of them. If they never occur in your text, then their frequency is 0/X.
@Jaime_Protein_Cannister9 жыл бұрын
+Theoretically Thanks a lot xd
@ahmadghaemi21922 жыл бұрын
Thanks, this was really helpful. What would happen if, instead of a shift, the letters in the key would each map to a permutation of the alphabet? Is it about as easy to break and if so, how would one go about breaking that?
@valfrancs2 жыл бұрын
You can break it with reverse encrypting, its like you did substitution (another method) and then Vigenere so now you have to do the reverse operation
@TheChunkBoi8 жыл бұрын
What if you don't have all letters of the alphabet i.e. a blank column when performing shits?
@peshodge53058 жыл бұрын
I would guess you mean shifts... :D Also im not sure ive just begun learning decryption, but I see you don`t have a response so maybe you just multiply by 0 and you get a zero... after this its just adding so it wont make the whole sum a zero
@ddxfraxinusdne8 жыл бұрын
If I am understanding you're question correctly, yes. You are correct, make it zero.
@danielbrunk91212 жыл бұрын
4:50 wait... thats insane!!! Thamk you for yoir Video already. I didnt watched it fully yet but at this point im convinced its legit
@clrk12344 жыл бұрын
when you shift the frequency probabilities, does it have to be in order?
@EthanConrad1239 жыл бұрын
This video was really helpful tbf and I understand this a lot better now. One thing I'm struggling to understand is how I can apply this to when we use 26 letters instead of just the A, B and C you used? If my keyword length is 5, that means I would have to do what you did 5 times right? And with 26 letters, that leaves 130 computations and in an exam situation I wouldn't have time for that haha! I've been given part of the plain text though, so can I use this to find my key? Thanks!
@ddxfraxinusdne9 жыл бұрын
+Ethan Conrad Hi Ethan, 1. Yes it takes forever by hand, most people use computer programs. But read point 3! :) 2. "If my keyword length is 5, that means I would have to do what you did 5 times right?" - Exactly 3. If you already have the some plaintext AND key length, it becomes much easier. Say you had a key length of 3 and your plain text started out "test" and your ciphertext was "UGVJPJ." Then we know that t=U, e=G, and s=V, so we could count and see that t and U are 1 apart, e and G are 2 apart, and s and V are 3 apart in the alphabet. So our key is (1, 2, 3) and we can apply that to the rest of the cipher text. Now instead say you had (for the same example) only "te" of the plaintext. Remember that you can easily figure out the first 2 key numbers. Then you could calculate the last one as usual and still have saving lots of time.
@EthanConrad1239 жыл бұрын
Theoretically Ah i see now! I managed to figure it out so thanks a lot :D
@buggydama6 жыл бұрын
After getting the keyword size wouldn't be more suitable to apply statistical analysis straight into the plain text? In this case you can generate multiple possible plaintexts and match them to get the most probable one. Afterwards find the keyword. *Also you avoid cases that the keyword is not word from any language. *I was thinking like this, because it's more likely for the plaintext to be in some language than the keyword itself.
@kennethbird46562 жыл бұрын
I have a kappa cryptogram puzzle I bought at a grocery store could you make a video on how to solve these? Thank you in advance.
@bencegyulakis38244 жыл бұрын
I still don't understand one thing. How do you get the frequencies for the letters (in the example a .10 b .20 c .70)? Because as far as I know you would have to collect data and recalculate the frequencies every time till it wont change anymore and that's about an eternity later. Someone please help!
@diggity10392 жыл бұрын
I have this encoded message I'm trying to decode, I've creates that table 5:30 in Excel. But I can't figure out the number. The frequency for coincidences is weird. It goes 0,1,1,0,0,1,1,4,2,1,0,0,0,1,0,1,1,0,0,0,0,0,0. Not sure how to count that.
@BrianR-ML9 жыл бұрын
Really good and clever video... Thank you!
@playforpassion71116 жыл бұрын
I am a competitive hacker so I followed well thanks it helped a lot!
@JV-pt2rz5 жыл бұрын
I love you, u saved me
@bobthebuilderhecanbuildit4 жыл бұрын
Thanks so much for this. I used it to code a program that can decipher any vigenere text without knowing the key! So Cool!
@YamChopp4 жыл бұрын
where can i check it out?
@MrMikeydrum4 жыл бұрын
@@YamChopp I wrote one years ago here excuse the music kzbin.info/www/bejne/h2TPZ2CBmLp_qcU
@JetNekko7 жыл бұрын
all understood , one single thing is why .50 with the shift of 2 was the key what math principle was that?
@shauryadoger3 жыл бұрын
So from this video, does it mean that the length of key cannot be greater than 25, as it 25 maximum length of any key in a long cipher text?
This is my cipher text here, but trying to find keyword. So to use above method for key, should I only use maximum of 25 enciphered letters for decryption like above?
@stargazer45743 жыл бұрын
@@shauryadoger Here to have the best chance to find the key would be to analyse everything, but for it to be shorter you would need a program. This is my problem, I don't know programming! :)
@dannuttle90054 жыл бұрын
This was great. I'm going to code this and see if I can make it work.
@NATHALIAAVILAIndiGoddess11474 жыл бұрын
Did it work?
@dannuttle90054 жыл бұрын
@@NATHALIAAVILAIndiGoddess1147 Heh...gonna need a little more time
@jammer19934 жыл бұрын
@@dannuttle9005 so.... did it work ?
@pepelepepe3 жыл бұрын
Isn't row 7 supposed to have 1 coincidence? Just to make sure I'm understanding.
@Randfisher-jc9xt5 жыл бұрын
Did anyone actually try decrypting using this method? Finding key length by this method actually doesn't work in all cases. For example try decrypting this text "HIZLRQRXDKOEA XF TMMYIAX R TMWUJ BJ KLZ AKRFMKMQQZC PSENZKZYEI ".
@angie61835 жыл бұрын
Lol that’s death
@angie61835 жыл бұрын
karthik reddy I’ll try
@angie61835 жыл бұрын
I died too much inside I give up 😂😂
@Randfisher-jc9xt5 жыл бұрын
Yeah I tired it too and had same feeling about it
@angelicaungurean8834 жыл бұрын
karthik reddy that was my problem with this video as well. The text I’m trying to decrypt is really long and there is no pattern in the frequencies, they repeat on different lines and I can’t find a solution for that
@bhalsodnirva1044 жыл бұрын
How can I do this with programming? Please help. I can not find any videos on youtube for this.
@sayangdiptochakraborty97835 жыл бұрын
what if the cipher is really long and the coincidences are just 1 in each shifted row in random spacings?
@fv65 жыл бұрын
this case arise when cypher length is small. this denotes the key may be of any length. no solution . so you have to try with all key length from 1 to 26
@sayangdiptochakraborty97835 жыл бұрын
I have been assigned with a task for 5000+ letters decryption with key unknown, workouts have to be shown, it has become almost impossible for me to do it. So thought if a proper algorithm or program exists for the same.
@rachnadesai80019 жыл бұрын
Thank you so much for your video.It helped me understood more clearly. But I had a question. What if my ciphertext is 500 characters long?Then your method of finding key length would be much more lengthy. Is there any other way to find key length?
@ddxfraxinusdne9 жыл бұрын
+Rachna Desai I don't know of any other way of finding key length. Usually people use a computer program to do the work for them. For example you could use Maple as seen in this video: kzbin.info/www/bejne/qJ-1d62bZbyHr68
@vinayakmate13172 жыл бұрын
You need to use Kasiski's Method to find the key length. Its much easier and works for any length of the cipher text.
@zainilham58454 жыл бұрын
this doesnt work. i have cipher text "GCYCZFMLYLEIM" with key length of 5. But using this algorithm the output of length is 4. pls help
@qiang28844 жыл бұрын
The text should be long enough for this method to work since it is based on statistic. For such a short string just try to use some online tool.
@zainilham58454 жыл бұрын
@@qiang2884 i need to write a report and create the code to decode without key. so i try to understand the concept with this video. i need the source code or explanation regarding my problem
@danielthompson22993 жыл бұрын
sort of got it...but how do i get the averages and the averages of the numbers?
@triciaopoku74006 жыл бұрын
Hi,I am not understanding how to find a corresponding encryption key. For example, A message M = Mario is Vernam encrypted into ciphertext C = AOAMV. The key is 5 letters long is all I know.
@raybroomall83834 жыл бұрын
Great start.. Keep doing this sort of thing. But get a bitter board, maybe even ast to use a classroom at a local collage. at about 15.4 in thee video you say to count the A, B, Cs again... we did that in the first round, so is the next round different? If so how?
@andrewrussell5864 жыл бұрын
You count every "x" letters, where x is your key length, but start from the next letter along. Then the next. Etc.
@cmanna2855 жыл бұрын
at 4:02 why haven't you wrapped the text around to teh beginning?
@1LizzyCore14 жыл бұрын
I would like to know that to tbh
@sazzadsaju75984 жыл бұрын
what if the calculated key is not working? how to change the key then?
@ibrahimcekirri37903 жыл бұрын
The first number key was 2 , what is its corresponding letter , C ???
@nazmussalehin75129 жыл бұрын
How have you determined the key length in your later example of all A,B and C's ? Because depending on the key length the shift would be different.
@ddxfraxinusdne9 жыл бұрын
Nazmus Salehin I just used the key length from the first message/step and assumed it was the same for the second message (for time's sake). In reality, yes, it does change the shift, so you would have to repeat the process we did with the "VVHQWVV..." message to the "ABAABCC..." message in order to determine the key length.
@nazmussalehin75129 жыл бұрын
can you show us please effective way of finding key length in Vigenere ciphers (or maybe index of coincidence method).I am at a loss here.
@ddxfraxinusdne9 жыл бұрын
Nazmus Salehin In the video, 0:37 - 5:41 is about finding the key length by hand. However, there are programs that can be used to do it for you, such as Maple. See: kzbin.info/www/bejne/qJ-1d62bZbyHr68 for doing it on maple. Is there a specific part that you are having trouble with? To summarize doing the process by hand: 1. Write out ciphertext 2. Write out ciphertext again and again one place over each time 3. Count the number of coincidences in each row. 4. Count how often "spikes" occur. For example, if the list of coincidences is 23, 15, 60, 17, 5, 45, 12, 27, 75... We can see that the biggest numbers in this list are 60, 45, and 75, which occur every three places (#, #, Big number, #, #, Big number, #, #, big number...). Therefore, we would conclude that this text has a key length of 3.
@nazmussalehin75129 жыл бұрын
thanks....Another question is why is that ?? I mean why looking for big numbers and the key length is between the gaps of consecutive big numbers ?
@ddxfraxinusdne9 жыл бұрын
Nazmus Salehin Why it happens is really quite interesting, but hard to put in words. I'll try with an example: Say the key length was 3, and the key was (2, 9, 5). Then every third letter will be "on the same shift." So in the ciphertext, the 1st, 4th, 7th, 10th, 13th etc letter will be shifted 2 places. Now we also know that the letters in an alphabet have constant frequencies. For example, in English, "e" is the most common letter. But when we shift it two spaces over (as in the first shift of our key), it becomes "G" in the ciphertext, and hence G will be the most common letter in the 1st, 4th, 7th, 10th, 13th etc position in the ciphertext, not "e." So now we know that G is the most common (for our shift 2 letters), and likewise we could figure out how common all the other letters of shift 2 are in the ciphertext. But when we line up the letters in an offset manner (like this we do in practice with all the rows offset from each other), what is the most common overlap of the same letter? Generally when G overlaps on G because it's the most common, right? Let's take a step back and think about the other shifts as well. If we were to look at the 2nd, 5th, 8th, 11th, etc letter in the plaintext, the "e" would be shifted 9 places to "N", so for the 2nd, 5th, 8th, 11th, etc letter in the ciphertext, "N" would be the most common letter. In the same way, in the 3rd, 6th, 9th, 12th etc letter in the plaintext, the "e" would shift 5 places over to "J", so J would be the most common letter in the 3rd, 6th, 9th, 12th etc place in the ciphertext. Now we have determined that for the first, second, and third shift, the letters G, N, and J, respectively would be most common (and of course we could find second most common, third most common, etc for each). So how do we use this fact? Well, any time the letters are lined up in multiples of the key (multiples of 3), there is the greatest chance of our G's in the top line lining up with G in the offset line (because they are the most common in the 1st, 4th, 7th, 10th, 13th etc position) in the first shift. In contrast, if the top line is, say for example, over a line with an offset of two (not a multiple of 3, the key), G will be the most common in the 1st, 4th, 7th, 10th, 13th etc position in top line, but in the offset line, J will be the most common in the 1st, 4th, 7th, 10th, 13th etc position (places still relative to the top line). HENCE, you won't get as many matches, called "coincidences," because the same letter is not the most common in both cases. The number of coincidences will be a little be lower because there are fewer J's than G's in the top line. Now remember that the while I just talked about how you get the most matches in the first shift, the same idea applies to all other shifts. So, IN SUMMARY: you obtain the most coincidences when the shift is at multiples of the key, which is what we see in practice.
@zainabiraq9921 Жыл бұрын
How u calculate The biggest no 30 25? And in step 2 From where u bring 125
@Advit_KRXZY9 күн бұрын
shoudl i answer?
@anjali33952 жыл бұрын
What if your cipher text is much longer?
@valkon_8 жыл бұрын
Why didn't you use the first encrypted message? Now I am sad Edit: Also , what if the numbers in the frequency are 1 2 3 4 5 6 etc and not 0 1 55 60 2 3 ? What if they don't have a big difference between them ? I don't believe your method works, the positions are not fixed.
@cosma_one8 жыл бұрын
+Valkon polla les
@0xc0ffee_6 жыл бұрын
This is not her method. Its proofed by complicated concepts of overlapping. This is not guaranteed to decypher it, but it's pretty dam close to do it
@sdetwil6 жыл бұрын
It's a proven mathematical concept, not something she came up with. The longer the message is, the more accurate it would be. It's a common theme in cryptography
@aleksandrakapa6 жыл бұрын
@@cosma_one εκλαψα χαχαχαχαχ
@amandeepsinghsokhi76858 жыл бұрын
what if i have a cipher text as AGVAR and the length of the key is given same as the number of letters in the cipher text.?
@ddxfraxinusdne8 жыл бұрын
Do you have a key? If so, see kzbin.info/www/bejne/pXnGe2eHgc6chpo If not, that ciphertext is really too short to do this type of analysis on.
@VictorHazali9 жыл бұрын
I understand how the decryption works, but why does it work? Is there any good resources that I can refer to for the explanation behind this attack? I'm guessing the step 2 is related to frequency of each character? But i can't explain why the counting of coincidences gives the key length for step 1.
@ddxfraxinusdne9 жыл бұрын
+Victor Hazali I'm not sure if this directly answers your question, but here is an explanation I gave someone previously. Maybe this will help you understand the "why." (sorry it's quite long) Why it happens is really quite interesting, but hard to put in words. I'll try with an example: Say the key length was 3, and the key was (2, 9, 5). Then every third letter will be "on the same shift." So in the ciphertext, the 1st, 4th, 7th, 10th, 13th etc letter will be shifted 2 places. Now we also know that the letters in an alphabet have constant frequencies. For example, in English, "e" is the most common letter. But when we shift it two spaces over (as in the first shift of our key), it becomes "G" in the ciphertext, and hence G will be the most common letter in the 1st, 4th, 7th, 10th, 13th etc position in the ciphertext, not "e." So now we know that G is the most common (for our shift 2 letters), and likewise we could figure out how common all the other letters of shift 2 are in the ciphertext. But when we line up the letters in an offset manner (like this we do in practice with all the rows offset from each other), what is the most common overlap of the same letter? Generally when G overlaps on G because it's the most common, right? Let's take a step back and think about the other shifts as well. If we were to look at the 2nd, 5th, 8th, 11th, etc letter in the plaintext, the "e" would be shifted 9 places to "N", so for the 2nd, 5th, 8th, 11th, etc letter in the ciphertext, "N" would be the most common letter. In the same way, in the 3rd, 6th, 9th, 12th etc letter in the plaintext, the "e" would shift 5 places over to "J", so J would be the most common letter in the 3rd, 6th, 9th, 12th etc place in the ciphertext. Now we have determined that for the first, second, and third shift, the letters G, N, and J, respectively would be most common (and of course we could find second most common, third most common, etc for each). So how do we use this fact? Well, any time the letters are lined up in multiples of the key (multiples of 3), there is the greatest chance of our G's in the top line lining up with G in the offset line (because they are the most common in the 1st, 4th, 7th, 10th, 13th etc position) in the first shift. In contrast, if the top line is, say for example, over a line with an offset of two (not a multiple of 3, the key), G will be the most common in the 1st, 4th, 7th, 10th, 13th etc position in top line, but in the offset line, J will be the most common in the 1st, 4th, 7th, 10th, 13th etc position (places still relative to the top line). HENCE, you won't get as many matches, called "coincidences," because the same letter is not the most common in both cases. The number of coincidences will be a little be lower because there are fewer J's than G's in the top line. Now remember that the while I just talked about how you get the most matches in the first shift, the same idea applies to all other shifts. So, IN SUMMARY: you obtain the most coincidences when the shift is at multiples of the key, which is what we see in practice.
@VictorHazali9 жыл бұрын
+Theoretically Thanks so much for the explanation! It's very clear with the example, and I think I understand why it works now.
@mukeshkumarkella86349 жыл бұрын
Nice Explanation. But could you make it complete with complete decryption instead of watching other video. Complete the cycle. Additionally, please post the link of first video. Thanks
@SyrBasel3 жыл бұрын
so if i have 200 letter as a encrypted text, should i do the process and find the coincidences ??
@jcarawllnyd97063 жыл бұрын
How did you reveal the whole of the letters in the description part? What is the general rule ?
@realpiee4 жыл бұрын
Should I be doing one word at a time? Sentence? How should I do this?
@_sidereal6 жыл бұрын
What is the best way of analyzing ciphertext of around 40 letters or so? Would this method be useful, or is it too short for the results to be accurate?
@TheNuclearBolton7 жыл бұрын
What happens if there are spaces in the ciphered text? Ex. aicbs akova ps sjkhal ...Would I just combine it all do it like what you did it in the video?
@ASkittishRaven6 жыл бұрын
So this channel explains ciphers and codes? Ill subscribe if you have more like this
@neelgorasiya71995 жыл бұрын
How can you define frequencies of a,b, c as 0.1,0.2,0.7?? Is all alphbets have their particular frequencies like this or not and how can i get it??
@piotrskrzypek79035 жыл бұрын
They were predefined for alphabet {a,b,c}. Yes all alphabets (of course associated with real languages) has their own letters frequencies. For example check english letters frequencies. If you want to crack Vigenere Cipher with ciphertext only, you should know the plain text language at least.
@LuxOnRust5 жыл бұрын
So I have one that I do not know what type of cipher it is, but It contains these characters: A,C,G,I,L,S,T,U,V,Y,Q,0,4,8 If someone could help me on how to solve it, I would be very grateful. It is a huge thing over 2000 letters
@prajit19888 жыл бұрын
Got the overall idea.It was good explanation. Still looking for base intuition...if possible can anyone provide any related link?
@mahash76017 жыл бұрын
what if I rewrite the cipher text and check for constants but I get only one large number which's 2 the rest of numbers were all one and zeroes!! how to find the key length then?
@ddxfraxinusdne7 жыл бұрын
Is your ciphertext too short?
@logancopper59137 жыл бұрын
I was given the letters KCO and was told to use the Vigenere Cipher to decode it, and I seem to be stuck, how could I decode this?
@ddxfraxinusdne7 жыл бұрын
kzbin.info/www/bejne/pXnGe2eHgc6chpo
@davideaureli28596 жыл бұрын
Sorry, but when you make the multiplication between the alphabetical frequency and that in the cyphertext , you are considering only the letters into that part of the cyphertext or all the alphabetic letters ?
@midnightgloom694203 жыл бұрын
The math edu link doesn't work btw (well for me at least) so can someone tell me the frequencies for the english abc XD
@henryyancey11173 жыл бұрын
how do you know the frequencies for the alphabet before hand? is it a universal truth?
@wretch13003 жыл бұрын
Can this method work to find a Gronsfeld key?
@jakestorrie68892 жыл бұрын
Where you get the .10 .20. and .70 from?
@Gary-Seven-and-Isis-in-19684 жыл бұрын
You're an absolute genius, thank you for a fascinating video. Could you tell me if it is possible to find the encryption key for an Android photo file if the owner mistakenly wiped the encryption key from the phone?. Yes it happened to me and so far nobody has been able to shed some light on this commonly occurring problem with Android phones. By default from Android 6 upwards all data is encrypted.
@gamehawk247 жыл бұрын
I know I have Vigenere cipher but the key is unknown. I've done the whole letter pyramid thing, but there are 160 characters, I did the math and finding all the coincidences would take me 13 hours to complete. Does anyone know of any digital methods that would make this easier?
@gamehawk247 жыл бұрын
never mind i'm already 1 third of the way there
@goddersgaming21865 жыл бұрын
Doing this is by no means conclusive and there could be many possible results. you need a longer text for this to work or its pointless trying. vigenere isnt a difficult cipher anyway with computers, use www.dcode.fr or write your own code, it is very easy to decipher because of its predictability. i am only 14 and my program solves long vigenere ciphers in less than a second. BUT USING ONLY 20 CHARACTERS IS POINTLESS!!! you dont stand a chance
@MohamedIbrahim-re1nc6 жыл бұрын
Thank you for the video! I just wanted to ask if the shifting and multiplying method has a name? Are there any references for it?
@benpru8429 жыл бұрын
and also the 10, 20, 70. is it just your guess or an actual thing. Same thing as the 125 still.
@ddxfraxinusdne9 жыл бұрын
+Ben Andrei D. Prudentino Hi Ben, so assuming you are talking about the 125 on the board at 11:00. These numbers (the 50, 125, and 25) were entirely made up/hypothetical numbers. If I counted/isolated every fourth letter of my ciphertext and asked "How many A's do I have?", "How many B's do I have", ect., I would get these numbers. So the 125 answers "how many B's" do I have in my made up ciphertext (which I didn't write out completely for time's sake). For the .10, .20, .70 (sorry, decimals are hard to see in the video): those were also made up numbers. In my hypothetical alphabet, I only have 3 letters: A, B, and C. And in my hypothetical language which uses my hypothetical alphabet, the frequencies of those letters occurring are 10%, 20%, 70%. Does that answer your questions?
@benpru8429 жыл бұрын
+Theoretically yeah and thanks but how can you get the answer if it is only a 3 key word?
@ddxfraxinusdne9 жыл бұрын
+Ben Andrei D. Prudentino If the key were only three letters long, then you would count every third letter instead of every fourth. Is that what you meant? The length of the key is how often letters are counted (Key length 3, every third. Key length 4, every fourth).
@jasonjase86614 жыл бұрын
I bet you can do cicada 3301 The Liber Primus is an unsolved puzzle on the internet Written in runes.... The runes are converted into numbers... The page solved use a vigenere cipher.... Give it a go. I think you will do well
@vinigfer5 жыл бұрын
Do you have the method/technique name used in your video? Awesome explanation :)
@onlymaz1007 жыл бұрын
why A is assigned 0 and not 1?
@ddxfraxinusdne7 жыл бұрын
Good question. I assigned A=0 because it's standard for cryptography. I have no idea who decided that though.
@Beverlypen7 жыл бұрын
+Theoretically i have been given a challenge cipher in my geometry class, and my teacher said i could use any outside resources. i have been trying to solve this cipher for about 7 hours and I'm wondering if I could send you it and if you could confirm that it is a Vigenere cipher. Thanks!
@MktNinja9 жыл бұрын
I may not have heard you, but for the largest #, why is not (5x5)+(2x5)+(2x2)=39 an option?
@ddxfraxinusdne9 жыл бұрын
+MktNinja Becuase Becuase we have to use the 5, 2, and 1 each only twice (and we have to use all three of them). As opposed to in your question, you used the 5 and 2 three times and did not use the 1 at all. Does that answer your question?
@whoizali2 жыл бұрын
you are a gem
@horsefuntinitan8274 Жыл бұрын
I only had 1 "big" number? Whatvdo i do in this case-
@leowang64705 жыл бұрын
Hi there do you have a series of affine cipher decryption with no keys? Thanks a lot :)
@dr.ambiguous49137 жыл бұрын
Nice, this helped me a lot. I have a question though, the ciphertext i'm trying to decrypt has more letters than the english alphabet. What do i do in this case?
@ddxfraxinusdne7 жыл бұрын
Anywhere with 26 (because that's the number of letters in the English alphabet), change to the number of letters in the alphabet you're using.
@dr.ambiguous49137 жыл бұрын
Theoretically What do you mean by anywhere with 26?
@ddxfraxinusdne7 жыл бұрын
For example, at the beginning where 0 =< a =< 25 (that's 26 numbers because of the alphabet) you would change to say 0=< 30 =< if your alphabet was 31 characters. Or when you're calculating frequency, you'll have to calculate the frequency of say, 31 letters rather than just 26. But overall, the process is exactly the same, you're just working with more letters.
@atomicnolxix4 жыл бұрын
Can you please kindly re-explain this part? 14:24
@shaderone074 жыл бұрын
@Thuliumify watch 5:52 to 7:57 . This is where she explain the principle that she was talking about . if you understand that you will understand 14:24.
@kronoszombieguidesapp9 жыл бұрын
what if you have a cipher with 25 out of 26 letters?
@kronoszombieguidesapp9 жыл бұрын
+Rob-a-Cat this one to be exact - HHGGGAWGGFMIEAPQVNBBYVTNJICRUUGPYRELEOPK.ZHDC
@kronoszombieguidesapp9 жыл бұрын
+Rob-a-Cat im thinking the ". ZHDC" is a hint to the key possibly?
@ddxfraxinusdne9 жыл бұрын
+ColbyWanKenobi what do you mean by 25 out of 26 letters? One of the letters in the alphabet does not appear in the ciphertext? Or the alphabet only has 25 letters in it? Or the ciphertext is 26 letters long but you only have 25?