dae's weblog

there's no fiction like non-fiction!
  • Home
  • BlackBerry
  • iPhone
  • laptop
  • Prius
  • wishlist
  • random password
  • social networking
  • contact
en nl 

random password

June 22nd, 2009 Leave a comment Go to comments

If you need another password for one of those websites, it’s kind of hard to trust yourself, being human. Everybody has their own preference for particular letters /numbers (or numbers / letters), so it’s better to let your computer do the computing of a nice, random password, like the one that was just produced for you at the top right of the screen, under “random password”. You can have your webserver generate a new random password automatically upon every page refresh, using the following code:

< ?php
function createPassword($length) {
$chars = “234567890abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”;
$i = 0;
$password = “”;
while ($i < $length) {
$password .= $chars{mt_rand(0,strlen($chars))};
$i++;
}
return $password;
}
$password = createPassword(8);
echo “How about: $password”;
?>

blog comments powered by Disqus
RSS
  • Google
  • Youdao
  • Xian Guo
  • Zhua Xia
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha

random password

H2PJOirf

tweet!

  1. Dae Punt
    Dae Punt: RT @ProLiant: Dave Peterson - great pres on server sprawl, see now http://bit.ly/hprs0311 #HPRS #HPCI http://bit.ly/bPPbOV
    about 3 hours ago

  2. Dae Punt
    Dae Punt: RT @ProLiant: upgrade #ProLiant G4 to G6 payback in 3 months #HPRS #HPCI http://bit.ly/azXshu
    about 3 hours ago

  3. Dae Punt
    Dae Punt: RT @slashdot: Researchers Beam 230Mb/sec Wireless Internet WIth LEDs http://bit.ly/cLjeHQ http://bit.ly/dtVa2A
    about 3 hours ago

tags

#socialnetworking @helzer @WPMU alpha Android APC backup bug citrix cloud compare education encryption event foc Foursquare Google Analytics google docs language Microsoft Hyper-V nightly build online out phishing PHP politics pre-alpha report search Shazam statistics syncsort technology TFTP tip trace tweetdeck ups VMware ESX wireshark WordPress MU wpml xen xenserver Yahoo!Pipes

RSS dae’s big catch

  • IPv6 komt er aan. Of je nu wilt of niet!
  • Kunst in Bedrijf 2010
  • byte_internet: [Storing (opgelost)] storing xs4all
  • Stef Kreymborg in het laboratorium
  • Vivian Rozenbeek in de Toonzaal
  • Blogstop
  • Trash
  • Uitnodiging Salon # 17 ‘Troost’ door Stef Kreymborg
  • Jeroen Geerts nieuwe verenigingsdirecteur NGN
  • Boekenweek 2010

RSS dae’s reading list

  • An error has occurred; the feed is probably down. Try again later.

RSS useful

  • 4SQ
  • Aardvark
  • BlackBerry Software Download for 3-Sweden/Denmark
  • BlackBerry Software Download for AVEA
  • Byte Partners
  • Common Craft
  • De Telefoongids
  • Dropbox
  • Free Secure Email Certificates Digital Signature for Email Security
  • Free Websites Performance, Availability, Traffic Monitoring
  • Get Satisfaction!
  • Google Apps
  • Google Gmail
  • Google Webmaster Tools
  • Gowalla
  • Hallmark
  • Let me google that for you
  • LinkedIn Events
  • MS Licensing
  • MS Office Live

RSS support

  • IBS
  • J.M. Meulenhoff
  • Jan Marijnissen
  • Laura Chappell
  • MS Windows Team Blog
  • Meulenhoff Boekerij
  • Mynx
  • Nivon Natuurvrienden
  • PPAU
  • Prometheus Bert Bakker
  • Sophos Anti-Virus
  • Veronica Magazine
  • XS4ALL
  • m0n0wall
  • pfSense

RSS unfiled

  • De kracht van koffiedaten - Carrièretips VKbanen - Solliciteren, CV schrijven, assessment
  • epicfu
  • Sophos: Operation Aurora
  • Postini: Google's take on e-mail security | Security - CNET News
  • The Golden Ear - pfSense 1.2 Firewall Appliance Guide
  • TED | Talks | List
  • WPML users forum
  • Tweetboard Support :: Open requests

links

  • @vark
  • AAB
  • AAB CC
  • AMEX
  • Analytics
  • bit.ly
  • Brightkite
  • Byte
  • cli.gs
  • del.icio.us
  • Dipity
  • Docs
  • Facebook
  • FeedBurner
  • Flickr
  • Fortis Bank
  • FriendFeed
  • gdgt
  • Google Wave
  • Hyves
  • iDC
  • LinkedIn
  • MailChimp
  • Mobypicture
  • MySkyStatus
  • MySpace
  • Orkut
  • OV-chip
  • ping.fm
  • Plaxo
  • rss-en
  • rss-nl
  • Seesmic
  • Skype
  • threadsy
  • TwAnalyzer
  • TweetStats
  • Twitnest
  • Twitter
  • TwitterFeed
  • Woopra
  • WordPress
  • Y!M
  • Y!P
  • Youtube

RSS alsoblog

  • Aad Holkamp
  • BAC ICT ROC
  • Connect Social Networks
  • Erik Rigters
  • Erik Stam
  • Familie Groot
  • Familie Jones
  • Familie Wezelman
  • Geertje Wezelman
  • Greet van den Berg
  • Hans Kuijpers
  • Hans Rijnders
  • Henriette Cramer
  • Herman Hendriks
  • Hugo van Waard
  • ITbende
  • Inga Broerse
  • Isa Nederbergh
  • Jae Punt
  • Karin Punt

archive

  • February 2010 (3)
  • January 2010 (1)
  • December 2009 (3)
  • November 2009 (2)
  • October 2009 (1)
  • September 2009 (6)
  • August 2009 (4)
  • July 2009 (18)
  • June 2009 (15)
  • May 2009 (1)
Top WordPress
Copyright © 2003-2010 dae's weblog
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.