Portál AbcLinuxu, 24. října 2025 12:40
import crypt
crypt.crypt('heslo','sa')
Ten druhy parametr je "sul". Muze to byt bud jeden nebo dva alfanumericke znaky.
/* GPL */
#define _XOPEN_SOURCE
#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv) {
int x= argc;
char *tmp;
while (x>2) {
printf("test\n");
tmp= crypt(argv[argc-(x-2)], argv[argc-(x-1)]);
printf("%s with salt %s is crypted() as %s\n", argv[argc-(x-2)], argv[argc-(x-1)], tmp);
// free(tmp);
x-=2;
}
}
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.