How to encrypt messages (Substitution cipher) - C Programming

  Рет қаралды 12,565

BogdanBudaca

BogdanBudaca

Күн бұрын

Пікірлер: 40
@BogdanBudaca
@BogdanBudaca 3 жыл бұрын
If you enjoyed the video and what I am doing on this channel, consider buying me a warm cup of coffee ☕❤️ www.paypal.com/donate?hosted_button_id=R8EXVLT5HFBYE
@lpataro
@lpataro 4 жыл бұрын
Usually I solve the exercises by myself then come here to check which path did end up choosing to pursue. Specially when I'm not super satisfied with my own solutions. It always gives me clarity on the logical aspect of things. Cheers from brazil
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Thanks Leonardo, cheers
@sanitarora7554
@sanitarora7554 4 жыл бұрын
After watching your videos, the programs seem so simple and doable! Thanks, man.
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Cheers Sanit, glad you liked it
@maanvijoneja3668
@maanvijoneja3668 4 жыл бұрын
Love your channel. Pls keep on making videos like these. Pleaseee. They are life saving
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Thank you, Maanvi
@josephsozio7316
@josephsozio7316 4 жыл бұрын
This helped me a ton thank you! I was missing the bit about ASCII code subtraction.
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Really glad Joseph, cheers
@green-coder
@green-coder 4 жыл бұрын
sir you are the best
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Cheers Tecno, glad it could shed some light
@AlexanderFedorOFF
@AlexanderFedorOFF 4 жыл бұрын
Thanks for your videos man, I like the way you explaining things.
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Glad you liked it
@yannmapouka8375
@yannmapouka8375 4 жыл бұрын
thank you for your explanations !
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Cheers Yann
@matheusrocha8037
@matheusrocha8037 2 жыл бұрын
Tanks for helping
@mawadhsalah1207
@mawadhsalah1207 3 жыл бұрын
Thank yooooooooooooooooooooooou very much ♥♥
@MKSundaram
@MKSundaram 4 жыл бұрын
HI, could you please tell me how can I write sustitution cypher program without fgets?
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Hi M K, you mean without getting user input at all, or using an alternative to fgets()? For the former I think then you could just hardcode the text inside the program if you'd want to use it for nothing else; for the latter, I see some results if I run a G search but can't say I've used anything else so far to be familiar with.
@MKSundaram
@MKSundaram 4 жыл бұрын
@@BogdanBudaca Thanks
@naveenthayyil8768
@naveenthayyil8768 2 жыл бұрын
legend
@hieunguyentrung8084
@hieunguyentrung8084 4 жыл бұрын
Can you show the code that decrypt the thing you have just encrypted?
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Thanks Hieu, might do a video on that then
@hieunguyentrung8084
@hieunguyentrung8084 4 жыл бұрын
@@BogdanBudaca When? Can be by Sunday 25/10?
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Afraid not Hieu, I'm a bit caught up for a few weeks.
@aloysiuskuon1553
@aloysiuskuon1553 4 жыл бұрын
Hi, would it be possible to explain how does the for loop after line 32 is related to char input [500]? Is char input [500] an array of 500 empty 'slots' that stores the difference between characters of plaintext and 'A' or 'a'? I'm new to this and have been trying to figure out how to implement the code for ciphering specifically. Would really appreciate it if there could be a way to explain what you meant in your code. Thank you.
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
I've used 'char input[500]' to indeed get an array of characters (letters) with a length of 500, just to be able to store/accommodate the plaintext and have some room for it. Then with the difference we just replace each letter with the one from the key (we deduct 97 or 65 to get the right index because that's from the ASCII codes tables index, but we need only indexes from 0 to 25 in the key). Hope this helps, try playing around with the code, it will make sense
@aloysiuskuon1553
@aloysiuskuon1553 4 жыл бұрын
@@BogdanBudaca I see... Able to picture it better now. Thank you very much!!
@maanvijoneja3668
@maanvijoneja3668 4 жыл бұрын
Please make a video on plurality pleaseeee
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Thank you for the idea 🙂
@yaserthedev2581
@yaserthedev2581 3 жыл бұрын
Is this homophonic substitution or polygram substitution?
@BogdanBudaca
@BogdanBudaca 3 жыл бұрын
Hello, hmh I think this is just simple substitution, not entirely sure
@hexohydraheretic4697
@hexohydraheretic4697 4 жыл бұрын
between lines 32 and 41 is argv incrementing aswell, because its in the for loop. sorry im just not seeing where your substituting the plain text for the key
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Hi, are you referring to the loop that changes the input? It doesn't change argv, it just goes to the index in argv based on the ASCII code of the letter being looked at from the input and deducting the respective value for lower or upper case, and then it passes that value to that input index, basically doing the substitution.
@davidkim2319
@davidkim2319 4 жыл бұрын
Are you a software engineer taking CS50 for fun?
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Yes, I love the solid foundation it offers and I think I lacked many of the things it puts on the table as far as an intro to CS goes. Always good to revisit foundations too, I think. And I also love the teaching manner and the whole fun approach, really glad I have such access.
@davidkim2319
@davidkim2319 4 жыл бұрын
​@@BogdanBudaca do you use the things you learned in the more comfortable problems in your day-to-day tasks? In other words, is it worth the time to do the more comfortable problems ?
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
TLDR: Oh I'd say so, yes. They're super interesting and I think it's a good hands-on, they tie well into the whole package. (I'm pretty sure they wouldn't be a time waste anyway). For me, it's not so much what I learned with the 'more comfortable' problems alone, it's really going through the whole experience. A few things I found helpful overall: - a deeper understanding of what is going on under the hood, things I now kind'a take for granted from my predecessors, for example data structures, algorithms, or even memory management with newer programming languages, or as low as the 0s and 1s - SQL - Python - The final lecture and the Web track were awesome, filled with the HTML/CSS/JS trifecta, and also connecting with Python/Flask and a DB of choice - Yes, the hands-on rocked (- Bonus - even had a look at the now deprecated Android, iOS and Games tracks and they are super interesting too)
@davidkim2319
@davidkim2319 4 жыл бұрын
@@BogdanBudaca Sounds awesome. What keyboard do you use?
@BogdanBudaca
@BogdanBudaca 4 жыл бұрын
Oh just some cheap wireless thing, I'm not very picky :)
How to run a plurality election - C Programming
23:01
BogdanBudaca
Рет қаралды 5 М.
How to encrypt messages (Caesar cipher) - C Programming
15:09
BogdanBudaca
Рет қаралды 24 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
The Biggest React Framework You've Never Heard of
20:29
Theo - t3․gg
Рет қаралды 48 М.
Structs and Pointers to Structs in C -- Engineer Man
4:28
Engineer Man
Рет қаралды 84 М.
Caesar Cipher C Program
19:07
Computer Science (compsci112358)
Рет қаралды 56 М.
Recursion in Programming - Full Course
1:51:36
freeCodeCamp.org
Рет қаралды 981 М.
Feistel Encoding (Cipher) made easy + step by step example ✅️
15:26
Project Code Mastery
Рет қаралды 42 М.
How to run a runoff election - C Programming
21:00
BogdanBudaca
Рет қаралды 9 М.
How I program C
2:11:32
Eskil Steenberg
Рет қаралды 800 М.
Encrypt and Decrypt Password with Key in C Programming
5:46
Dr. Parag Shukla
Рет қаралды 14 М.
Heron's formula (example and proof)
17:47
bprp math basics
Рет қаралды 20 М.
How to compute readability (Coleman-Liau index) - C Programming
25:11
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.