Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Include a specific erroPassword generator with user inputs bash scriptr, task, problem, or question in your title

bash shell password

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 kvr123

kvr123

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 01 December 2016 - 03:03 AM

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.google.com and the name is Kevin i want google and Kevin in the password.

When the user enters Tom and https://outlook.live.com/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?

https://www.instagram.com

the output should be something like : tomR3instagram5 or 4instagramRTtom

Can anyone lead me in the right direction?