Created
November 10, 2023 18:26
-
-
Save dangarbri/ae80c4bb1570ae1f6b6c1f300d10f74a to your computer and use it in GitHub Desktop.
crypt, since it exists only as a c function and not a binary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdio.h> | |
int main(int argc, char** args) { | |
if (argc < 3) { | |
printf("Usage: %s password salt\n", args[0]); | |
} | |
printf("%s\n", crypt(args[1], args[2])); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile with
gcc crypt.c -lcrypt -o crypt