Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Better passwords for new users. New Code
By tneff , Section Code []
Posted on Fri Apr 26, 2002 at 12:00:00 PM PST
I hacked Scoop to send easier-reading initial passwords to new accounts.

One of my pet aversions is to ugly Alphabits passwords generated by mean old software. An example is Scoop which sends you a random startup pw like AeXgdJzo or something. You're almost forced to cut and paste it when you log in, and the first thing you do if you're smart is change it to your own favorite guessable word. I prefer to generate passwords using two legible English words with a punctuation symbol between them, e.g, table-happy.

So I patched Scoop.pm as follows. I have a big file of words 5 letters or less (/usr/share/dict/words5). I have a little utility called 'randlines' that takes a list of lines and spits them out in random order - it's really simple:

  use Math::Random qw(random_permutation);
  print random_permutation(random_permutation(grep(/^[a-zA-Z0-9]/, <>)));
Now I patched Scoop.pm itself to comment out the old password generation code and substitute mine:
	###my $foo = new String::Random;
	###$foo->{'A'} = [ 'A'..'Z', 'a'..'z' ];
	###my $pass = $foo->randpattern("AAAAAAAA");
	my $pass = `/usr/local/bin/randlines /usr/share/dict/words5 | head -2`;
	$pass =~ s{\n}{-};
	chomp($pass);
I could do it slightly more efficiently by hauling the random selection code into Scoop, but I already had the tool, and user accounts aren't created that often. tmn
< Ads on this site. | Come get your fresh Chron >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· More on New Code
· Also by tneff

Story Views
  31 Scoop users have viewed this story.

Display: Sort:
Better passwords for new users. | 3 comments (3 topical, 0 hidden)
best kitchen remodeling weschester county (none / 0) (#1)
by Pervez on Sat Mar 30, 2019 at 10:05:46 PM PST

We've been written content hereafter immediately after looking at the next few paragraphs. Want to acknowledge the many wide range of occasion expended to discuss this approach all-around! Right now, comply with below best kitchen remodeling weschester county I truly do would like to think about far more enhancements right from you can.



Advantages of Choosing On line Cellular Looking (none / 0) (#2)
by whiteblade on Thu Nov 21, 2019 at 03:54:19 AM PST

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. tree service Nashville



create a good password (none / 0) (#3)
by normangarland on Thu Oct 29, 2020 at 07:24:36 AM PST

This is very helpful just realized how dumb I was when it comes to creating password. https://www.stpetecarandlimoservice.com/



Better passwords for new users. | 3 comments (3 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search