Generation

generate functionSun, 13 Nov 2022

break password the uses the md5 hash and return the unhashed password

#include <stdio.h> #include <string.h> #include <openssl/md5.h> int main(int argc, char **argv) { int i; MD5_CTX mdContext; unsigned char c[MD5_DIGEST_LENGTH]; char *string = "This is a test"; MD5_Init (&mdContext); MD5_Update (&mdContext, string, strlen(string)); MD5_Final (c, &mdContext); for(i = 0; i < MD5_DIGEST_LENGTH; i++) printf("%02x", c[i]); printf (" %s\n", string); return 0; }

Questions about programming?Chat with your personal AI assistant