Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Jul 2014, 01:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Ppass - Simple password generator
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Thu 18 Jun 2009, 07:44    Post subject:  Ppass - Simple password generator  

Version: 0.1

Ppass is a simple gtkdialog-gui for pwgen (included). It generates a list on 10 random passwords (8 chars). You could choose between 2 'security levels'.

If you need longer passwords => use another tool Wink

aragon
ppass.png
 Description   
 Filesize   45.7 KB
 Viewed   789 Time(s)

ppass.png

ppass-0.1.pet
Description 
pet

 Download 
Filename  ppass-0.1.pet 
Filesize  13.78 KB 
Downloaded  333 Time(s) 

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Thu 18 Jun 2009, 09:35    Post subject:  

Thanks for this Smile
8 characters is standard now

I have to use a password book Shocked
One tip I liked is combining the
name of the program or location with a standard password
- perhaps based on song lyrics

so you might have

gmailTamfibitw
diggTamfibitw

that is 'The answer my friend is blowing in the wind'

_________________
Puppy WIKI

Last edited by Lobster on Fri 19 Jun 2009, 11:24; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 19 Jun 2009, 05:05    Post subject:  

Dear aragon,

Here is a little script I put together to generate passwords based upon the kernel's /dev/random function. I think it does as good a job as your pwgen for most practical purposes - though I haven't tested its "strength" - and is roughly 15x smaller. Please have a look if you eventually do a rewrite of your gui.

With kind regards,
vovchik

PS. Lobster, that is a very useful little tip - using lyrics. I think I'll adopt the method.
mypasswd.tar.gz
Description 
gz

 Download 
Filename  mypasswd.tar.gz 
Filesize  586 Bytes 
Downloaded  314 Time(s) 
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 19 Jun 2009, 07:11    Post subject:  

hi vovchick,

seems to me a very clever script. if it's ok for you, i will create a new version with your code.

if i want to include a secure version with special characters i will have to add them to "mychars", correct?

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 19 Jun 2009, 07:56    Post subject:  

Dear aragon,

Please feel free to use the script as you wish. You are right in that extra chars can be added to the my_chars var. I just modded the script a tiny bit and added a max_len var to control the length of the password. Please have a look, because it may offer more flexibility than the original.

With kind regards,
vovchik

PS. Das Gui-Programm hat mir gefallen. Vielleicht können wir Barry ueberreden es ein Bestandteil des normalen Puppys zu machen. Wäre nicht schlecht.

Code:
#!/bin/sh

# -----------------------------------------------------------------
# Program:   mypasswd
# Author:   vovchik
# Date:      19.06.2009
# Platform:   Puppy Linux
# Depends:   bash, od
# Purpose:   To generate random passwords using upper and lowercase
#         ascii chars and numbers 0-9. The program makes use of
#         the Linux kernel random function /dev/random.
# -----------------------------------------------------------------

# ---------------------
function init_vars ()
# ---------------------
{
min_num=1
max_num=63
my_index=1
max_len=8
my_chars=" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
my_asc=""
}

# ---------------------
function make_passwd ()
# ---------------------
{
my_pass=""
while [ $my_index -le $max_len ]
do
   my_num=$(( $min_num+(`od -An -N2 -i /dev/random` )%($max_num-$min_num+1) ))
   my_asc=`echo ${my_chars:$my_num:1}`
   my_index=$((my_index+1))
   my_pass=$my_pass$my_asc
done
}

# ---------------------
function show_result ()
# ---------------------
{
echo "My password is: $my_pass"
}


# ---------------------
# main
# ---------------------

init_vars
make_passwd
show_result

# ---------------------
# end main
# ---------------------
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 26 Jun 2009, 07:08    Post subject:  

hi vovchick,

is it possible to have a fixed length e.g. 8 or 10 chars with your script?

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 26 Jun 2009, 07:43    Post subject:  

Hi aragon,

Sure, just change the max_len=8 to max_len=12 or 20, if you wish. If you name that quantity using a var, you can pass the length to the script, which may be convenient. And you can change the my_chars var easily, too, but make sure you have at least as many chars (+1 blank at the beginning to avoid a division by zero) as in the max_num var. I suppose script could be improved by having the length of the my_chars var computed automatically and assigned to the my_chars var. I think that would be efficient and save you the trouble of counting the string length manually, as I now have it. I also came across another password generating snippet that looked very useful - different method entirely - but don't know where I copied it to. If I find it again, I will post it here.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 26 Jun 2009, 07:53    Post subject:  

Dear aragon,

With a bit of grepping on "history" I found the other program, which looks interesting and works. I have attached it.

With kind regards,
vovchik
genpass.tar.gz
Description 
gz

 Download 
Filename  genpass.tar.gz 
Filesize  1.02 KB 
Downloaded  329 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0637s ][ Queries: 12 (0.0098s) ][ GZIP on ]