473,371 Members | 1,461 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,371 software developers and data experts.

How to hide password

Hi All,
I would like to get the passwordf from the user,
I need to hide the password , replace it with '*' or not type user input,
I don't want to use a package such as 'ReadKey' or any other
How can I get the password and hide it?

May 13 '07 #1
4 16224
1,089 Expert 1GB
Hello Ronen,

Look into the following cpan module:
cpan Term::InKey

Even if you don't want to use a package, you can still download the module and look at it's source to determine a way that you could code it all yourself.

- Miller
May 13 '07 #2
May 28 '07 #3
Hi all,
I also want to hide password.i tried below solution in winxp but i got the error "'stty' is not recognized as an internal or external command,operable program or batch file.".

how could i avoid this error?

Sep 7 '10 #4
hi ketanm,

Maybe more than a bit too late a reply for you, but you can use the Term::ReadKey module for this. Here is how:

use strict;
use warnings;
use Term::ReadKey;

ReadMode = 'noecho';
my $password = <>;
Jan 15 '13 #5

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

Similar topics

by: Kona | last post by:
Hello, I'm new with Oracle JDBC connection. Is it a way to crypt, hide the password string into a Oracle JDBC connection string ? The goal is to hide the password within script file. Thank's...
by: william cline | last post by:
Hi, I am a beginner and below I have code for a long in form. My goal is for the form to read a file of a list of users and thier passwords ....compare the text box inputs to the file and either...
by: Sharon | last post by:
I wrote an assembly in C#/.NET that includes some personal information. But this information can be revealed by opening the assembly in tools like the ‘Microsoft .NET Framework IL DASM’ and...
by: Jurij P | last post by:
Did anyone tried to hide a password on client side before sending it over net (MD5 - like yahoo mail client)? thank you, Jure
by: emerth | last post by:
Hi, I have a command line PHP script that logs into a network service with a user name specified on the command line. The script then prompts for a password. Currently the password is echoed...
by: cefrancke | last post by:
I have a few tables with sensitive user information (passwords, etc.) and I would like to prevent someone from opening a blank database and importing those tables. Is there a way to "hide" or...
by: hindsy | last post by:
I'm writing a script for CLI on a windows server that needs the password characters hidden or masked from the user. I've found information on how to do it in a Unix Shell but not in a Windows MS-DOS...
by: atencorps | last post by:
Hello I have the following code but need some help on it. The idea of the code is the main sections ie Service Management are viewable when the page is loaded and by clicking on the main...
by: rkyakkala | last post by:
Hi, In my webapplication i am opening new window by passing some parameters.i am passing password also as parameter.But i need to hide it or encode it. how can i do this.Following is my code: ...
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...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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,...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.