LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 10-06-2004, 07:42 PM   #1
Likosin
Member
 
Registered: Aug 2003
Location: NY
Distribution: Debian
Posts: 119

Rep: Reputation: 15
useful script - Now, you only have to remeber one password!


I've been inspired to write a script...Generate A Password, or gap for short.

gap allows you to remember only one password, but have a unique password for every site you visit, every program you use, etc. And best of all, the passwords generated are long, and use letters and numbers. This makes them very secure.

Here is how it works:

You give it a unique identifier, that is, whatever you want the password to be for...for example, if you need a password for www.someobscuresite.com, oneobscuresite is a good idea.

You also give it your standard, master password...this can be as long or as short as you want, easy or hard to remember. As long as you keep your master password secret, all you other passwords are secure.

The script puts both strings(the unique identifier and your master password) into a temporary file, and finds the MD% sum of this file...this hash is your password!


Some caveats: You need kde...the script uses kdialog. If you don't have kde, you can use the 'read' command, or a GNOME alternative, or whatever...don't flame me because I use kde.

Some tips: If you have several profiles for, say, yourchatapp, you can use yourchatapp_username1, yourchatapp_username2 for your unique identifiers.

finally, the script:



Code:
#!/bin/bash
UID=`kdialog --inputbox "What is a unique identifier (such as a domain name, title, etc)?" ""`
PASS=`kdialog --inputbox "What is your master password?" ""`
echo $UID > /tmp/gaptmp
echo $PASS >> /tmp/gaptmp
HASH=`md5sum /tmp/gaptmp | awk '{print $1}'`
kdialog --inputbox "Your password is" $HASH
/bin/rm /tmp/gaptmp
Just paste the above into a file, chmod +x it, and presto!

Please, tell me what you think. If you think anything needs to be changed, please post a whole modified script here, so we can all keep track.
 
Old 10-06-2004, 07:47 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Moved: More suitable in the Success Stories where even small howto's, scripts, etc are posted.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Password Script? wellington Linux - Software 5 05-30-2006 12:21 AM
I cannot remeber a command name perfect_circle Slackware 9 04-27-2005 10:54 AM
script and password input Rex_chaos Linux - General 1 07-22-2003 03:04 PM
Remeber window position/virtual desktops... Mr Guk Linux - Newbie 2 11-05-2002 01:52 PM
Password Change Script krpotdar Linux - General 6 04-17-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration