I don't think this is a good use for a GUID. Do you really want your users to have to type in a different 32 character security code every time they use a particular feature of your site? Typically, more than 8 characters starts becoming a burden.
Matt
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Maurice O'Prey
Sent: Monday, September 08, 2008 1:50 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] Random String Generator
Hi Nathan
Just curious myself, how does your version stand up to .NET
Function GUID() As String
GUID = System.GUID.NewGuid().ToString()
End Function
Regards
Maurice
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Nathan Andelin
Sent: 08 September 2008 18:04
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Random String Generator
Last week's discussion on CAPTCHA made me curious about random number
and random string generation because random codes are harder to break
than say a fixed collection of codes or derived images.
So I set about to write a couple RPG procedures that could be used for
random number and random string generation. For example, the following
screen shows a program for generating random strings of 4-8 characters
based on the lower-case English alphabet.
http://www.radile.com/rdweb/temp/random.html
I found that with even a limited alphabet, the procedure can generate
thousands of unique strings of 4-8 characters. It was just interesting;
A curiosity.
I don't have an immediate use for something like this, but I think it
will come in handy sometime in a toolkit.
Nathan.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/web400.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.