473,666 Members | 2,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to hide password

4 New Member
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?

Thanks,
Ronen
May 13 '07 #1
4 16271
miller
1,089 Recognized Expert Top Contributor
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
lonewlf
1 New Member
system('stty','-echo');
chop($password= <STDIN>);
system('stty',' echo');
May 28 '07 #3
ketanm
8 New Member
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,operabl e program or batch file.".

how could i avoid this error?

Thanks.
Sep 7 '10 #4
ashtavatar
1 New Member
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

1
11687
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 in advance
1
13064
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 start over or load the main file.... I attempted to use a slect case..but its not working for me.. If someone has a better way of doing it..I would apperciate the help. Thank you! Option Explicit Public LoginSucceeded As Boolean
12
4626
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 ‘Reflector’. I do not want to expose this code. How do I hide it? -- Regards Sharon G.
1
1785
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
2
7217
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 on the screen/terminal as it is typed. Is it possible to stop the password being echoed on the command line
7
5087
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 protect these tables from being linked or imported? TIA
0
1360
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 environment. All I need is the characters typed at the CLI to be hidden or masked with say a ' * '. Any ideas?
0
1964
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 titles/headings or clicking on the 'expand all' will allow you to view the items underneath each title/heading. The page seems to be broken at the Incident and Request Management title/heading section as shown in the image attached. Can anyone help /...
4
2860
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: function getUrl(gsamName,deviceName,userName,passWord){ ...
0
8443
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6192
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.