473,382 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Assigning Password character

Suppose if i want to enter a password how can i assign a password character like * in C program......How can i input the password displaying the password character
Oct 10 '07 #1
4 3042
Firecore
114 100+
Suppose if i want to enter a password how can i assign a password character like * in C program......How can i input the password displaying the password character
You could create a loop, take input, replace screen with the password char like '*' or something. i rekon this will work. give it a go
Oct 10 '07 #2
You could create a loop, take input, replace screen with the password char like '*' or something. i rekon this will work. give it a go
But i want this way...
My screen should look like this for eg:

Enter your password:
When it ask the user to enter password......wen the user enters it should display like this
********
Can u tell me how?
Oct 10 '07 #3
mattmao
121 100+
See if this works, I grab it from google:
http://www.phim.unibe.ch/comp_doc/c_...LES/password.c
/************************************************** **********************
*
* Purpose: To read and verify a password.
* Compile: gcc password.c -lcurses
* Notes: To read text from the keyboard on a UNIX system without
* it being echoed to the screen you can use noecho() and
* getch() from curses.h In DOS you can use getch() in conio.h
* Author: M. J. Leslie
* Date: 12-Mar-94
*
************************************************** **********************/

Code omitted...


Yet another reference :

http://www.planet-source-code.com/vb...=8637&lngWId=3
Oct 10 '07 #4
Meetee
931 Expert Mod 512MB
But i want this way...
My screen should look like this for eg:

Enter your password:
When it ask the user to enter password......wen the user enters it should display like this
********
Can u tell me how?
FireCore is saying the same you want. You can take the password in string and for each alphabet you will have to replace * to show it on screen.

You can search on Google also.

Regards
Oct 10 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Nitin | last post by:
I have created a console based application using C# which asks for the user identification to work using that system. Now, the problem is that i'm not able to hide or encrypt the password on the...
5
by: Skeleton Man | last post by:
Hi, I came across the basic algorithmfor decrypting WS_FTP Pro 6 passwords as follows, and I'm trying to reverse it to make an encryption function: function ws_dec() { var str =...
3
by: julianmoors | last post by:
Hey, Currently I'm writing a VB.NET/1.1 app and I need to mask the input for the password field. Does anyone know how to do this in VB? I've seen a C# example, but wouldn't know how to convert...
2
by: UJ | last post by:
Does anybody have lying around a Regex for a strong password (or a routine to check it). I'd like the normal First character has to be a character, total of 8 characters and has to have at least...
1
by: JIM.H. | last post by:
I have a password field in my login page (ASP.NET 1.1), how can I validate password based on at least 6 characters, one number, and one capital letter.
7
by: rajbala.3399 | last post by:
Hi , I want to download sql in my linux system........... # rpm -ivh MySQL-server-5.0.24a-0.glibc23.i386.rpm MySQL-cl ient-5.0.24a-0.glibc23.i386.rpm Preparing... ...
4
jeffbroodwar
by: jeffbroodwar | last post by:
Hello, i have a problem about assigning a char value to a byte... please check the code below : ======================================================== Scenario # 1 : This code doesn't work : ...
2
by: DarthPeePee | last post by:
Hello everyone. I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix. When pressing the "Clear Password & Try Again" button, the password clears...
7
by: jodleren | last post by:
Hi I have been looking into php.net, but could not find any proper description. There is a way of assigning variables from functions, while at the same time using them in e.g. an if. I have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.