Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h>
- #include <string.h>
- #include <crypt.h>
- #define _XOPEN_SOURCE
- char *crypt(const char *key, const char *salt);
- int main(void) {
- char *password = "lol";
- char *salt = "50";
- char *encrypted = crypt(password, salt);
- printf("%sn", encrypted);
- return 0;
- }
- // should print 50cI2vYkF0YU2 per CS50 crack exercise example.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement