Generate a random alpha-numeric string
numero = 49[text]PasswordLength=8[/text][text]Chars=abcdefghijkmpqrstuvwxyz23456789[/text][text]Max=[countchars][Chars][/countchars][/text][text]Pass=[/text][loop start=1&end=[PasswordLength]] [text]X=[math]ceil([random format=float]*[Max])[/math][/text] [text]Pass=[Pass][getchars start=[X]&end=[X]][Chars][/getchars][/text][/loop][Pass]You can change [PasswordLength] to whatever you need, so if you wanted to generate a 128 character key, for instance, change it to 128.Also, for my purposes, I removed any characters that would be 'confusing' (e.g. 1 & l, O &0), but you can have whatever characters you like in the [Chars] variable.
[text]PasswordLength=8[/text]
[text]Chars=abcdefghijkmpqrstuvwxyz23456789[/text]
[text]Max=[countchars][Chars][/countchars][/text]
[text]Pass=[/text]
[loop start=1&end=[PasswordLength]]
[text]X=[math]ceil([random format=float]*[Max])[/math][/text]
[text]Pass=[Pass][getchars start=[X]&end=[X]][Chars][/getchars][/text]
[/loop]
[Pass]
DOWNLOAD WEBDNA NOW!
This Technical Change History provides a reverse chronological list of WebDNA changes...
Download WebDNA ApplicationsWebDNA applications...
Tips and TricksA list of user-submitted tips ...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
WebDNA LibrariesA list of available libraries for WebDNA...
WebDNA ModulesA list of the currently available modules...
Your server is not always in the same time zone as your web site...
How old am I?You want to express an age in years given the dob (mm/dd/yyyy) and today's date...
Hideif on IP rangeThis will show or hide stuff according to the IP...
Annoying character on writefileHow do I get rid of or convert the line feed character during a writefile?...
WebDNA interaction with zipI have a project where I'm allowing several people to upload images...
Do you hate updating the copyright notice at the bottom of all your pages?It's January 1st and you have to update the copyright notice at the bottom of all your websites...