The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mask ID number lyoncc Shell Programming and Scripting 3 07-20-2007 02:29 PM
How to Mask ur MAC address in BSD PenguinDevil BSD 1 06-12-2004 10:43 PM
How do I mask my MAC address PenguinDevil IP Networking 2 04-26-2004 02:26 PM
Changing the mask kkinnon IP Networking 1 04-02-2003 12:05 PM
Subnet mask Z0DiaC IP Networking 7 09-15-2001 07:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2002
krishna krishna is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 60
password mask in C

Hi,

Could any one help me to write a C program for password mask
with ******. I mean whatever word i will type that will show on the screen as ***** and should store the correct value in a variable.

Thanks in advance

Krishna
  #2 (permalink)  
Old 06-17-2002
Deepa Deepa is offline
Registered User
  
 

Join Date: Apr 2002
Posts: 53
Krishna

Check out the function getpass()...this function is used for getting the password without echoing on the terminal. It may not echo '*'s as you need.

Check out "man getpass".

Deepa
  #3 (permalink)  
Old 06-18-2002
krishna krishna is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 60
getpass() will work fine, but I need password mask as "***"
  #4 (permalink)  
Old 06-18-2002
Deepa Deepa is offline
Registered User
  
 

Join Date: Apr 2002
Posts: 53
Did u try "ioctl"?
I havent tried so far..but feel that u can do it using this system call.
  #5 (permalink)  
Old 06-18-2002
krishna krishna is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 60
I don't have idea about ioctl, if you know please send me the example code to : kkodava@maxis.com.my
  #6 (permalink)  
Old 06-18-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
krishna, you are not a newcomer here, your post count is 40. This makes it even more disappointing when you break the rules. Please reread the forum rules. And notice rule number 10:
Quote:
(10) Don't post your email address and ask for an email reply. The forums are for the benefit of all, so all Q&A should take place in the forums.
To solve your problem you will need to turn echo off. Then you will write a "*" for each character that you read. I do something very close to that in this post.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0