Sponsored Content
Full Discussion: Masking Password with *'s
Top Forums Programming Masking Password with *'s Post 302481691 by Driver on Sunday 19th of December 2010 08:32:55 AM
Old 12-19-2010
Right, it just shows how to read the data. You'd have to store and evaluate it yourself. You will probably also want to handle backspace (\b) and print "\b \b" to erase that last character from the display.
 

10 More Discussions You Might Find Interesting

1. IP Networking

IP Masking

Is it possible for a internal LAN to mask a IP e.g. i have a server ip running the intranet ip being 192.168.0.8 and i want to make that like www.intranet.com is this possible on a internal network ? (1 Reply)
Discussion started by: perleo
1 Replies

2. Shell Programming and Scripting

Masking Content of a String

Hello, I need to know that whether a content of a string can be hidden or masked inside a shell script. My Sample Code is given below <Code> #!/usr/bin/ksh Userid=test DB=temp Passwd=`java Decryption test` # The Above command will get the encryped password for "test" user id and store... (2 Replies)
Discussion started by: maxmave
2 Replies

3. Shell Programming and Scripting

Data Masking

I have a pipe delimited file that I need to 'mask' to before loading to keep some data confidential. I need to maintain the first 4 bytes of certain columns and replace the remaining bytes with an 'x'. I would like to maintain spaces but it's not a requirement. Example, need to mask columns 2... (2 Replies)
Discussion started by: 1superdork
2 Replies

4. Emergency UNIX and Linux Support

Masking of number

BAT:0310:2009-08-0:Y4 :H:D:00003721:03103721.IFH:00138770:05767:00000000001279' EXR:CLP:912.570000' STA:A:9071559:2009-08-10::Wer::Mrs' DEF::531.97:531.97:310221661617::+ABC:BAL:1:N::::5:40.00:0.00:2009-08-10:CN:1111111111109962::3:N:missc :N:PH:00010833:... (5 Replies)
Discussion started by: mad_man12
5 Replies

5. Shell Programming and Scripting

Scripting help/advise on hiding/masking username/password

Hi, I currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit. At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. Shell Programming and Scripting

masking issue

Hi I am facing an issue with the below script which has the below line each field being separated with a tab. I need to mask the 8 and 7th field based on following conditions 1. 8th field is 16 in length and is numerics i will mask the middle 6 digits except the first 6 and last 4. input... (2 Replies)
Discussion started by: mad_man12
2 Replies

7. Shell Programming and Scripting

Masking Password from within a Bash Shell Script

Is there a way to mask the password inside of a script to minimize the impact of a comprimised server? So ssh -o "PasswordAuthentication no" -o "HostbasedAuthentication yes" -l testuser 192.168.3.1 "mysqldump --opt --all-databases -u root -pPassword| gzip" > $backup_dir/mysqldump.gz a... (2 Replies)
Discussion started by: metallica1973
2 Replies

8. Shell Programming and Scripting

Masking algorithm

I have a requirement of masking few specific fields in the UNIX file. The details are as following- File is fixed length file with each record of 250 charater length. 2 fields needs to be masked – the positions are 21:30 and 110:120 The character by character making needs to be done which... (5 Replies)
Discussion started by: n78298
5 Replies

9. UNIX for Dummies Questions & Answers

Masking data

How Can I mask one particular columns using some unix command? (4 Replies)
Discussion started by: dsa
4 Replies

10. Shell Programming and Scripting

Masking with gsub command

My file "test.dat" data as below Requirement is to mask(replace) all english characters with "X" EXCEPT first 7 characters of every line. my command awk '{gsub("]","X")}1' test.dat looks not working properly, Appreciate any suggestion... (6 Replies)
Discussion started by: JSKOBS
6 Replies
STTY(1) 						      General Commands Manual							   STTY(1)

NAME
stty - set terminal options SYNOPSIS
stty [-a | -e] [-f file] [operands] DESCRIPTION
Stty sets certain I/O options on the current output terminal, placing its output on the diagnostic output. With no argument, it reports the speed of the terminal and the settings of the options which are different from their defaults. The following options are available: -a Display everything stty knows. This has the same effect as using the operand all or everything. The distinction between all and everything has been removed. -e Same a -a above. -f Open and use the terminal named by file rather than using standard output. The file is opened using the O_NONBLOCK flag of open(), making it possible to set or display settings on a terminal that might otherwise block on the open. The following operands are special: all Everything stty knows about is printed. everything Same as all above. flushout Flush the queues for the device. This is most useful when an exiting process is stuck waiting for terminal output to drain. speed The terminal speed alone is printed on the standard output. size The terminal (window) sizes are printed on the standard output, first rows and then columns. Operands are selected from the following: even allow even parity input -even disallow even parity input odd allow odd parity input -odd disallow odd parity input raw raw mode input (no input processing (erase, kill, interrupt, ...); parity bit passed back) -raw negate raw mode cooked same as `-raw' cbreak make each character available to read(2) as received; no erase and kill processing, but all other processing (interrupt, suspend, ...) is performed -cbreak make characters available to read only when newline is received -nl allow carriage return for new-line, and output CR-LF for carriage return or new-line nl accept only new-line to end lines echo echo back every character typed -echo do not echo characters tandem enable inbound software (xon/xoff) flow control, so that the system sends out the stop character when its internal queue is in danger of overflowing on input, and sends the start character when it is ready to accept further input -tandem disable inbound software (xon/xoff) flow control -tabs replace tabs by spaces when printing tabs preserve tabs For the following commands which take a character argument c, you may also specify c as ``undef'', to set the value to be undefined. A value of ``^x'', a 2 character sequence, is also interpreted as a control character, with ``^?'' representing delete. erase c set erase character to c (default `#', but often reset to ^H.) kill c set kill character to c (default `@', but often reset to ^U.) intr c set interrupt character to c (default DEL or ^? (delete), but often reset to ^C.) quit c set quit character to c (default control .) start c set start character to c (default control Q.) stop c set stop character to c (default control S.) eof c set end of file character to c (default control D.) brk c set break character to c (default undefined.) This character is an additional character causing wakeup. dec set all modes suitable for Digital Equipment Corp. operating systems users; (erase, kill, and interrupt characters to ^?, ^U, and ^C, decctlq and ``newcrt''.) 0 hang up phone line immediately 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb Set terminal baud rate to the number given, if possible. (These are the speeds supported by the DH-11 interface). rows n The terminal size is recorded as having n rows. columns n The terminal size is recorded as having n columns. cols n is an alias for columns. A teletype driver which supports the job control processing of csh(1) and more functionality than the basic driver is fully described in tty(4). The following options apply only to it. new Use new driver (switching flushes typeahead). crt Set options for a CRT (crtbs, ctlecho and, if >= 1200 baud, crterase and crtkill.) crtbs Echo backspaces on erase characters. prterase For printing terminal echo erased characters backwards within ``'' and ``/''. crterase Wipe out erased characters with ``backspace-space-backspace.'' -crterase Leave erased characters visible; just backspace. crtkill Wipe out input on like kill ala crterase. -crtkill Just echo line kill character and a newline on line kill. ctlecho Echo control characters as ``^x'' (and delete as ``^?''.) Print two backspaces following the EOT character (control D). -ctlecho Control characters echo as themselves; in cooked mode EOT (control-D) is not echoed. decctlq After output is suspended (normally by ^S), only a start character (normally ^Q) will restart it. This is compatible with DEC's vendor supplied systems. -decctlq After output is suspended, any character typed will restart it; the start character will restart output without providing any input. (This is the default.) tostop Background jobs stop if they attempt terminal output. -tostop Output from background jobs to the terminal is allowed. flusho Output is being discarded usually because user hit control O (internal state bit). -flusho Output is not being discarded. pendin Input is pending after a switch from cbreak to cooked and will be re-input when a read becomes pending or more input arrives (internal state bit). -pendin Input is not pending. pass8 Passes all 8 bits through on input, in any mode. -pass8 Strips the 0200 bit on input except in raw mode. mdmbuf Start/stop output on carrier transitions (not implemented). -mdmbuf Return error if write attempted after carrier drops. litout Send output characters without any processing. -litout Do normal output processing, inserting delays, etc. nohang Don't send hangup signal if carrier drops. -nohang Send hangup signal to control process group when carrier drops. The following special characters are applicable only to the new teletype driver and are not normally changed. susp c set suspend process character to c (default control Z). dsusp c set delayed suspend process character to c (default control Y). rprnt c set reprint line character to c (default control R). flush c set flush output character to c (default control O). werase c set word erase character to c (default control W). lnext c set literal next character to c (default control V). Modem Control Status: These display the current state of modem control. They are only displayed for actual tty lines and not for pseudo tty lines (more pre- cisely, it is only displayed for lines which support the TIOCMGET ioctl. See tty(4). While it is possible to change the state of the modem control lines, the hardware or other software may prevent the change from actually taking place, or may cause the state to immediately revert to the original state. dcd (-dcd) State of Data Carrier Detect. dsr (-dsr) State of Data Set Ready. dtr (-dtr) State of Data Terminal Ready. cts (-cts) State of Clear To Send. rts (-rts) State of Request To Send. SEE ALSO
ioctl(2), tabs(1), tset(1), tty(4) 4th Berkeley Distribution March 27, 1997 STTY(1)
All times are GMT -4. The time now is 10:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy