Password generator with user inputs


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Password generator with user inputs
# 1  
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?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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

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

7. 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

8. 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

9. 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
Login or Register to Ask a Question
yppasswd(1yp)															     yppasswd(1yp)

Name
       yppasswd - change password in yellow pages (YP) service.

Syntax
       yppasswd [ name ]

Description
       The  command lets you change your password in the yellow pages (YP) map, a network data base service.  Only you or the superuser can change
       your YP password.

       When you enter the command, the program prompts you for the old password and then for the new password. Note that  the  passwords  are  not
       displayed on the screen.

       Next,  the  program asks you for the new password again, to verify that you have typed it correctly.  If you do not type the passwords cor-
       rectly, you will receive an error message after you enter the new password.

       Your new YP password must meet one of the following requirements:

	  o It must be a combination of at least six alphanumeric characters, or

	  o It must be a minimum of four characters, with at least one being non-alphanumeric, such as a control sequence.
       The command does not change the YP password.  This command only changes the local password file and not the YP master password  file.   See
       Chapter 3 of the Guide to the Yellow Pages Service for further information.

Diagnostics
       Please use a longer password
       Your new password does not meet the minimum length requirement.

       Mismatch- password unchanged
       You misspelled your new password or its verification.

       couldn't change passwd
       Your new password can not be activated. It must be different from your old password and your login name.

Files
       Password file

       Yellow Pages directory

See Also
       passwd(1), passwd(5yp), ypfiles(5yp), yppasswdd(8yp)
       Guide to the Yellow Pages Service

																     yppasswd(1yp)