2 Replies Latest reply on Jul 13, 2009 7:28 PM by RSchaub

    Password Generator

    leelee

      Title

      Password Generator

      Post

      Is there a way to create a script of some sort to generate a string of characters.  I would like to generate an 8-character password which does not include l I o 0 O specific to a record. Thank  you.

        • 1. Re: Password Generator
          mrvodka
             Could you elaborate a little more? What are you trying to use this for?
          • 2. Re: Password Generator
            RSchaub
              

              here's a custom function from my good friend Jean Wenmeekers, that will do the job

             

             


            //Name                     : JWRandom (Number)
            //                            :JWRandom
            //                            : Number
            // Family                   : Data Manipulation
            // Branch                  : <none>
            // Tier                      : 0
            // Creator                 : Jean Wenmeekers
            //Creator Info            :  jw@jwessolutions.com
            // Date                     : 31/01/2006
            // Purpose                : Return a random hash string, lenght = number value
            // Parameters            : number - value equal lenght of hash
            // Related Function    : JWRandomCaps
            // Uses                    : Recursive
            //

            If( number ;

            Choose ( Round( Random * 58 ; 0 ) ;

            "0";"1";"2";"3";"4";"5";"6";"7";"8";"9";
            "A";"B";"C";"D";"E";"F";"G";"H";"J";
            "K";"L";"M";"N";"P";"Q";"R";"S";"T";
            "U";"V";"W";"X";"Y";"Z";"a";"b";"c";"d";
            "e";"f";"g";"h";"j";"k";"l";"m";"n";
            "o";"p";"q";"r";"s";"t";"u";"v";"w";"x";
            "y";"z";

            ) & JWRandom( number - 1 ) ;
            ""
            )