How to generate user passwords

dunbarx at aol.com dunbarx at aol.com
Wed Apr 27 19:27:29 EDT 2011


I was in Malaysia in 1998 programming the Petronus Towers concert hall with a HC based control system for a large fiber optic project.


The client still owed us quite a bit of money, and I knew if I left town, we would have a time getting paid. It was that sort of job.


So while the general contractor was on the concert floor calling light patterns back to me via walkie-talkie, I would take a few seconds here and there to add a small counting routine, such that after 30 sessions the system would erase the stack script, and ask for a password from then on (the system was shut down each night). The stack script was saved in a button.


We got nowhere with collections, and a month after I got back I answered a frantic call from the client. Long story short, we had a wire transfer in two days, and I sent them the password that disabled the "virus" and restored the stack script. The password was "357".


My point is that unless you are defending against the KGB, or are worried that an LC-savvy agent might be called in, you don't really need a lot of fancy protection.


Not that there is anything wrong with fancy.


Craig Newman





-----Original Message-----
From: Mark Schonewille <m.schonewille at economy-x-talk.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Apr 27, 2011 3:45 pm
Subject: Re: How to generate user passwords


Bill,

I made this as part of another discussion about speakable passwords.

function speakablePassword theLength
     put "bcdfghjklmnprstwyz" into myConsonants
     put "aeiou" into myVowels
     put "" into myPass
     repeat myPasswordLength
          if char -1 of myPass is in myConsonants then
               if char -2 of myPass is in myConsonants or \
                   length(myPass = 9) then
                    put any char of myVowels after myPass
               else
                    if any item of "true,false" then
                         put any char of myVowels after myPass
                    else
                         put any char of myConsonants after myPass
                    end if
               end if
          else
               put any char of myConsonants after myPass
          end if
     end repeat
     return myPass
 end speakablePassword

Since you didn't say what you want to use the passwords for, I don't know if 
this will be helpful, but I'm posting it anyway.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 27 apr 2011, at 20:45, Bill Vlahos wrote:

> Before I reinvent the wheel, has anyone written a routine to generate 
passwords that they would be willing to share?
> 
> Bill Vlahos


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list