Questions tagged [cipher]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
43 views

ciphertext and the plaintext,

Let's now use a modified Caesar Cipher where c = (p+3x) mod 26, where c and p are the ciphertext and the plaintext, respectively, and x is the key. How many distinct keys, producing distinct ...
0
votes
1answer
341 views

I have the error of :( handles non numeric key - timed out while waiting for program to exit in Problem Set 2 Caesar

I have the error occured. May I know wheres the issue & where to add or remove the code? I'm new to the this. Thank You in advanced. #include <stdio.h> #include <stdlib.h> #include &...
0
votes
1answer
58 views

Error in my submission for CS50 Pset2 Caesar. New line placement is wrong

#include <cs50.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(int argc, string argv[]) { //Check if there is 1 command-line ...
1
vote
2answers
29 views

Caesar question chapter2

// k is between 1 and 26 for (int i = 0, n = strlen(s); i < n; i++) { // only for capital letters if (s[i] >= 'A' && s[i] <= 'Z') int dif = 'Z' - s[i]; ...
0
votes
2answers
14 views

program is compiling but not getting output..please help!

#include<stdio.h> #include<cs50.h> #include<stdlib.h> #include<string.h> #include<ctype.h> int main(int argc, string argv[]) { if (argc != 2) { printf("...
0
votes
1answer
43 views

vigenere output

Ok. I've been working on this for two days now and have checked various types of answers on here, but I'm not sure what's wrong with my code. I think maybe I need a fresh pair of eyes, or my equation ...