Skip to content

Instantly share code, notes, and snippets.

View prateek-parashar's full-sized avatar

Prateek Parashar prateek-parashar

View GitHub Profile
@prateek-parashar
prateek-parashar / test.c
Created March 7, 2018 14:58
Testing the rest program
#include <stdio.h>
#include <cs50.h>
#include <string.h>
bool is_rest(string s);
int main(void)
{
// Expect notes from user until EOF
while (true)
{
@prateek-parashar
prateek-parashar / crack.c
Created March 1, 2018 13:00
Code to crack passwords hashed using the DES algorithm
#define _XOPEN_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <cs50.h>
#include <string.h>
int main(int argc, string argv[])
{
//taking in the hashed input from the user
if (argc != 2)