blob: 260205c5875e495ddafac0db0243d9ded32eac28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* mkpasswd.c - written by Marco d'Itri <md@linux.it>, 1999/10/3.
* Silly little program for encrypting passwords
* It is so dumb that I will just place it in the public domain
*/
#define _XOPEN_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
if (argc != 3) {
puts("Usage: mkpasswd PASSWORD SALT\n");
exit(1);
}
printf("%s\n", crypt(argv[1], argv[2]));
exit(0);
}
|