random password-generator code

Generate a random alpha-numeric string

numero = 49
interpreted = N
texte =
[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]

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. Dan Strong

DOWNLOAD WEBDNA NOW!

Top Articles:

WebDNA reference

...

Download WebDNA Applications

WebDNA applications...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

WebDNA Libraries

A list of available libraries for WebDNA...

Tips and Tricks

A list of user-submitted tips ...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

How to create a RSS feed

How to create a RSS feed from yourdatabase on formation...

random password-generator code

Generate a random alpha-numeric string...

Database backup

How to make a backup of your databases...

ImageMagick

Use ImageMagick to manipulate images when you upload them...

Extracting the first sentence out of a block of text

I need to extract the first sentence out of a block of text...

How to setup CODA to work with WebDNA?

This page will show graphically how to setup CODA as a WebDNA partner :-)...