Staging
v0.8.1
https://github.com/python/cpython
Revision 9d19a914d0dc44b1e11265725f99389dd7364561 authored by Jack Jansen on 14 August 1995, 12:14:55 UTC, committed by Jack Jansen on 14 August 1995, 12:14:55 UTC
1 parent ec38010
Raw File
Tip revision: 9d19a914d0dc44b1e11265725f99389dd7364561 authored by Jack Jansen on 14 August 1995, 12:14:55 UTC
Added prompt to getfile dialog
Tip revision: 9d19a91
cryptmodule.c
/* cryptmodule.c - by Steve Majewski
 */

#include "allobjects.h"

#include <sys/types.h>


/* Module crypt */


static object *crypt_crypt(self, args)
	object *self, *args;
{
	char *word, *salt; 
	extern char * crypt();

	struct passwd *p;
	if (!getargs(args, "(ss)", &word, &salt)) {
		return NULL;
	}
	return newstringobject( crypt( word, salt ) );

}

static struct methodlist crypt_methods[] = {
	{"crypt",	crypt_crypt},
	{NULL,		NULL}		/* sentinel */
};

void
initcrypt()
{
	initmodule("crypt", crypt_methods);
}
back to top