Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Password generator with user inputs Post 302986868 by Kvr123 on Thursday 1st of December 2016 04:20:08 AM
Old 12-01-2016
Password generator with user inputs

Hi,
I am new to bash scripting and i wanted to make a bash script that will generate a password for a user. The user must enter his/her name and the url of the site the password is used for. And the script will generate a password with those two elements in the password. So if the url is www(dot)twitter(dot)com and the name is Kevin i want twitter and Kevin in the password.

When the user enters Tom and outlook.live/owa the password should be something like Tomoutlook or outlookTom but i wanted to add random characters (lowercase, uppercase, numbers) so the password is 15 characters long.

for example:

name?

tom

url?

www(dot)instagram(dot)com

the output should be something like : tomR3instagram5 or 4instagramRTtom
Anyone can lead me in the right direction?
 

9 More Discussions You Might Find Interesting

1. Cybersecurity

Password Generator

I need a great Password Generator program. I looked at a few of them, but none of them seemed to be what I wanted. So I have decided to write my own. (That's the cool thing about being a programmer....I always get what I want in software :) ) Do you have any password generators that you... (13 Replies)
Discussion started by: Perderabo
13 Replies

2. Shell Programming and Scripting

limiting data inputs for the user

if my user has to enter the name of months to carry out a search how can I limit the input values to only the month names and nothing else? so far my input criteria for the user is this: i would like it so the user can only enter the months in the way i have stated. otherwise they would... (11 Replies)
Discussion started by: amatuer_lee_3
11 Replies

3. Shell Programming and Scripting

Scripting A Source File With User Inputs

I need to write what I thought would be a fairly simple 2-line UNIX script. It can be written PERL, csh, ksh...or whatever is easiest. The entire script will be: Begin Scipt source MySourceFile execute MyExecutable.exe End Script The problem is that MySourceFile can not be... (1 Reply)
Discussion started by: MMorrison
1 Replies

4. Shell Programming and Scripting

How to automate user's inputs.

Hi Friends, I am wrinting a shell script MorningChecks.sh which will call another script StartServer.sh. But the latter script requires user's inputs to complete. I want to automate this. So can you please let me how this can be achieved? Any help would be highly appereciated. ... (3 Replies)
Discussion started by: singh.chandan18
3 Replies

5. Cybersecurity

swordfish --- a password generator

Here is my new password generation script. The attachment, swordfish.txt, is in dos format. Remember that you need to use dos2unix or flip or something to get it into unix format. The script is self documenting. It has an extensive help system built-in. And you can run: swordfish "set... (8 Replies)
Discussion started by: Perderabo
8 Replies

6. Shell Programming and Scripting

Take 10 user inputs and output to file?

I want a script that will prompt a user to enter 10 numbers and out put them into a file. This what I have so far, but isn't working. I'm guessing it's something easy I'm not seeing. Thanks for any help. #!/usr/bin/ksh echo "Enter 10 numbers" for i in 1 2 3 4 5 6 7 8 9 10 do read .... ... (8 Replies)
Discussion started by: AxlVanDamme
8 Replies

7. Shell Programming and Scripting

Storing user inputs into a file

Hi, Am trying to store the user inputs into a file, but the below code will store only the first line of the values. I need to store all the user input values which may contain one or more lines. Thanks in advance. echo "please enter file names"; read name; echo $name>/tmp/test (11 Replies)
Discussion started by: rogerben
11 Replies

8. Shell Programming and Scripting

Script to cp files that user inputs

Need a bash script that will ask the user: Which Files Would you like to copy? Then the user would input the filenames (space seperated, all lowercase) The script would then cp each file to /data/backup/ and also wc the files to std output. (to see how many lines each file has) Should go... (5 Replies)
Discussion started by: ajp7701
5 Replies

9. Shell Programming and Scripting

Random Password generator with 2 digits and 6 characters

I am using the below to random generate a password but I need to have 2 numeric characters and 6 alphabetic chars head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo '' 6USUvqRB ------ Post updated at 04:43 PM ------ Any Help folks - Can the output be passed onto a sed command to... (9 Replies)
Discussion started by: infernalhell
9 Replies
AXSPAWN.CONF(5) 					     Linux Programmer's Manual						   AXSPAWN.CONF(5)

NAME
axspawn.conf - Control the operation of axspawn. DESCRIPTION
The axspawn.conf file controls the operation of the axspawn(8) program. The operation of the config file can best be seen in an example: # this is /etc/ax25/axspawn.conf # # allow automatic creation of user accounts create yes # allow empty password field (so user may login via telnet, too) [default no] create_empty_password no #create_empty_password yes # create with system utility useradd(8)? [default no] #create_with_useradd no create_with_useradd yes # # pwcheck method: password or call or group. [default: password] #pwcheck call #pwcheck group pwcheck password # # guest user if above is 'no' or everything else # fails. Disable with "no" guest guest # # group id or name for autoaccount group hams # # first user id to use first_uid 400 # # maximum user id max_uid 2000 # # where to add the home directory for the new user home /home/hams # # secure homedirectories (g-rwx) #secure_home yes # # user's shell shell /bin/bash # # bind user id to callsign for outgoing connects. associate yes The "associate" option has to be used with great care. If a user logs on it removes any existing callsign from the translation table for this userid and replaces it with the callsign and SSID of the user. This will happen with multiple connects (same callsign, different SSIDs), too. Unless you want your users to be able to call out from your machine disable "associate". FILES
/etc/ax25/axspawn.conf SEE ALSO
axspawn(8). Linux 2 August 1996 AXSPAWN.CONF(5)
All times are GMT -4. The time now is 02:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy