version 1.9, 1999/05/20 00:05:39 |
version 1.10, 1999/08/16 19:46:38 |
|
|
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
#include <pwd.h> |
#include <pwd.h> |
|
#include <ctype.h> |
|
|
/* |
/* |
* Very simple little program, for encrypting passwords from the command |
* Very simple little program, for encrypting passwords from the command |
|
|
char msalt[3], *salt; |
char msalt[3], *salt; |
struct passwd pwd; |
struct passwd pwd; |
extern char *bcrypt_gensalt __P((int)); |
extern char *bcrypt_gensalt __P((int)); |
extern pwd_gensalt __P((char *, int, struct passwd *, char)); |
extern int pwd_gensalt __P((char *, int, struct passwd *, char)); |
|
extern void to64 __P((char *, int32_t, int n)); |
|
|
switch(operation) { |
switch(operation) { |
case DO_MAKEKEY: |
case DO_MAKEKEY: |