Questions tagged [encryption]
The encryption tag has no usage guidance.
10
questions
0
votes
1
answer
122
views
I'm stuck on cs50 pset2 - crack
I am new to coding. I am trying to solve crack problem of cs50. The problem works hashing 1 character, but when i try to hash 2 characters i can't pass arguments from the string to the crypt function. ...
0
votes
1
answer
30
views
My cipher algo is wiping out my keyword!
When my cipher algo sees an "a" it seems to wipe out the rest of the keyword, returning only a " ", which seems to erase the rest of my keyword, leaving my encryption useless. I've debugged this ...
0
votes
2
answers
47
views
My vigenere code is not encrypting properly
This is my code:
#include <stdio.h>
#include <ctype.h>
#include <cs50.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, string argv[])
{
int index =0;
...
0
votes
1
answer
53
views
Pset2 Caesar Hail dont know how to encrypt the plaintext
plz help me refine my code thx!!
https://raw.githubusercontent.com/check50/davil3388/cs50/2017/fall/caesar/caesar.c?token=Aehv0R6qUjbNWPi_rOMKjS7ChP3tSlW1ks5aSK8MwA%3D%3D
0
votes
2
answers
535
views
PSET2: Can't figure out what's wrong with my crack.c code?
I've been trying to get my crack code working for days now. It took me a while to even understand the problem but I think I have somewhat of a handle on it now. My code compiles completely fine but ...
0
votes
2
answers
105
views
PSET 2 Vigenere - problem
My code works with a Key of BBB and the letters AAA and loops properly and skips spaces, numbers, punctuation but fails the tests. With a key of baz, it turns world say hello to xpsme, tbz ifmmp and ...
0
votes
2
answers
166
views
CS50 pset2 Caesar's cipher - Compile but doesn't work?!? GetString() above and beyond
I'm working on pset2, Caesar's cipher part. I understand how to proceed to do the encryption and my program compile well. The first line of command allow the user to correctly enter his key. After the ...
0
votes
1
answer
223
views
Caesar help, Yet again
Ok so i have the basic idea of caesar and heres what i have so far:
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#...
0
votes
4
answers
1k
views
How to Encrypt Plaintext Properly When it Contains Non-Alphabetical Chars?
My caesar.c doesn't encrypt plaintext properly when there are non-alphabetical chars in my plaintext word. Here's my code for encryption:
int k = atoi(argv[1]);
string plain_text = GetString();
// ...
0
votes
1
answer
129
views
Why Doesn't Vigenere Give the Correct Output?
Hy guys , i have almost finished with vigenere.c and when i did several tests it was doing well , but when ai tried to encrypt "Meet me at the park at eleven am" using as a keyword "bacon" that's the ...