Caesar Cipher C Program

  Рет қаралды 56,597

Computer Science (compsci112358)

Computer Science (compsci112358)

Күн бұрын

Пікірлер: 18
@cybrok3
@cybrok3 3 жыл бұрын
thank you broh , really nice logic ..but u may wanna add a condition for the spaces that are going to be typed , if the message is going to contain a sentence with words
@TheDramenable
@TheDramenable 6 жыл бұрын
Que buen video wey la neta te rifas un chingo, a huevo necesitaba esto para entregar un proyecto y tu explicas bien vergas, dices paso a paso todo y eso esta bien chingon we la neta te dejo un pinche likesote a la verga eres la verga jalate a la verga compa fierro pariente cero miedo si o no compa la neta al chile pelon si wey
@erickung393
@erickung393 3 жыл бұрын
May I ask why we need to subtract 1 from strlen(plaintext)? Why need minus 1? I didn't get it😭😭 can someone explain to me please
@jamesdempsey9907
@jamesdempsey9907 6 жыл бұрын
Great video and very helpful am stuck and not sure why. I enter my message and the encrypted message comes back as : The encrpted message is: , cypher, cypher, cypher, cypher, cypher Any help would be much appreciated.
@kennielarsen940
@kennielarsen940 5 жыл бұрын
Hello, thanks for the solution. I don't know if comments are still answered, but how come you subtract 97 and then add them again after? I don't clearly get the idea, as removing those would still equal to the same result? At least in the tests I've done so far :-)
@Duqtur_mohammad_Omar
@Duqtur_mohammad_Omar 2 жыл бұрын
thnnx bro for this useful video bt it would be better using a screenrecoder coz i couldnot see clearly......
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 2 жыл бұрын
Thanks for the feedback this was an older video.
@Pioneer4
@Pioneer4 3 жыл бұрын
My output is infinite times running why?
@BVK_LMZ
@BVK_LMZ 3 жыл бұрын
thanks
@oliverbolton9518
@oliverbolton9518 7 жыл бұрын
I tried this and my output just cycles through the characters for example "hello" came out as "ellox" any tips?
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 7 жыл бұрын
Hi Oliver, You tried this exact code and got "ellox" from "hello" ?
@panasheterencekujinga8160
@panasheterencekujinga8160 8 жыл бұрын
why do you use fgets instead of scanf? is there a difference
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 8 жыл бұрын
There is a difference, I am using it to be able to read in a line of text such as "hello world notice the space". You can not scan in the whole string using scanf just the "hello" portion will be read. But if you just want to scan in one string like "hi" then you can use the scanf function and will have to change the caesarCipher function to the following: Note: All I did is delete the '-1' from the while loop. void caesarCipher(char* plainText, int key){ int i=0; int cypherValue; char cypher; while( plainText[i] != '\0' && strlen(plainText) > i){ cypherValue = ((int)plainText[i] -97 + key) % 26 + 97; cypher = (char)(cypherValue); printf("%c", cypher); i++; } printf(" "); } Thanks for watching and the comment!
@dharmang
@dharmang 7 жыл бұрын
can u plzz zoom in a bit cause am watching on a 5.5 inch and still cant see btw lol 😂
@unboxmodz8584
@unboxmodz8584 6 жыл бұрын
damn how many years have you been reading about c?
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 6 жыл бұрын
I first started learning C-Programming about 10 years ago.
@vincentarasaratnam4742
@vincentarasaratnam4742 3 жыл бұрын
Its not very much clear in your video, video capacity too, small
@mehmetuguryetis6709
@mehmetuguryetis6709 4 жыл бұрын
Sir ı have a assigment just like you did. may you help me if you write your e-mail, I can send you pdf file
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 580 М.
C++ Caesar Cipher (ASCII Codes) | Algo for Beginners
13:39
Errichto Algorithms
Рет қаралды 48 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Vigenere Cipher C Program
27:53
Computer Science (compsci112358)
Рет қаралды 16 М.
My 2 Year Journey of Learning C, in 9 minutes
8:42
VoxelRifts
Рет қаралды 689 М.
How to encrypt messages (Caesar cipher) - C Programming
15:09
BogdanBudaca
Рет қаралды 24 М.
you will never ask about pointers again after watching this video
8:03
"C" Programming Language: Brian Kernighan - Computerphile
8:26
Computerphile
Рет қаралды 1,9 МЛН
Caesar Cipher (Part 1)
13:23
Neso Academy
Рет қаралды 597 М.
Caesar Cipher Program in Python | Encryption and Decryption With Caesar Cipher
17:31
Fabio Musanni - Programming Channel
Рет қаралды 54 М.
Playfair Cipher
19:18
Videos By Kevin
Рет қаралды 195 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
Java Tutorial - Caesar Cipher
15:38
Zoran Davidović
Рет қаралды 69 М.