ChinaUnix.net
相关文章推荐:

getpass用法

#include #include #include int main(void) { char *password = NULL; password = getpass("Input a password:"); printf("The password is: %s/r/n", password); return 0; } 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/108757/showart_2145960.html

by sunkjz - Linux文档专区 - 2010-01-11 18:24:09 阅读(897) 回复(0)

相关讨论

[code]#include #include #include #include int main() { char passwd[13]; char *key; char slat[2]; key= getpass(“Input First Password:”); slat[0]=key[0]; slat[1]=key[1]; strcpy(passwd,crypt(key slat)); key=getpass(“Input Second Password:”); slat[0]=passwd[0]; slat[1]=passwd[1]; printf(“After crypt(),1st passwd :%s\n”,passwd); printf(“After crypt(),2nd pas...

by aldslvda - C/C++ - 2013-09-09 09:23:53 阅读(2918) 回复(2)

unix下输入密码可以使用getpass,终端不回显输入。但其是个要被摈弃的函数,且有8位长度的限制。还有什么好办法用来输入密码呢?

by yycfriends - C/C++ - 2006-02-21 12:42:45 阅读(1043) 回复(4)

c中,要求用户输入密码,输入的密码不回显。getpass可以满足这个需求,但它是个将被淘汰的函数,只支持不超过8位的密码。该用什么方法替换呢?谢谢

by yycfriends - C/C++ - 2005-12-29 15:48:41 阅读(1419) 回复(1)

snprintf getpass environ 三个函数的 函数声明: 函数用途: 头 文 件: 输入参数: 输出参数: 返 回 值: 使用说明: ?

by kongjx - C/C++ - 2004-06-25 15:18:29 阅读(1145) 回复(2)

#! /usr/bin/env python #filename:pwd.py # development environment:python2.51 import getpass usr=getpass.getuser() while True: pwd=getpass.getpass("passwd:%s:" % usr) if pwd=='123': print "welcome to python!!!!" break else: print "The password you entered is incorrect" 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/95612/showart_1941369....

by Wieman - Python文档中心 - 2009-05-24 03:07:03 阅读(3060) 回复(0)

getpass函数已经是obseleted了,那用什么方法替代它呢? 谢谢

getpasspasswdpasswordPOSIX

by xuphys - Linux环境编程 - 2011-10-03 11:19:11 阅读(4353) 回复(3)

刚刚安装httpd-2.2.3时make出错,请各位大侠帮帮忙~~信息如下: [root@backup httpd-2.2.3]# make Making all in srclib make[1]: Entering directory `/home/james/httpd-2.2.3/srclib' Making all in apr make[2]: Entering directory `/home/james/httpd-2.2.3/srclib/apr' make[3]: Entering directory `/home/james/httpd-2.2.3/srclib/apr' /bin/sh /home/james/httpd-2.2.3/srclib/apr/libtool --silent --mode=link gcc -g ...

by yslaoniu - 服务器应用 - 2007-01-11 12:29:42 阅读(6659) 回复(2)