[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 07-03-2003, 07:13 AM   #1 (permalink)
First Time Poster!
 
Join Date: Jul 2003
Posts: 1
3.00 NP$ (Donate)

Ian Mainim is an unknown quantity at this point


Generating random seed strings using cursor

Hi,

I needed a javascript that could create random seed strings.
The script was to be used to ensure key integrity for a webb-based application.

I found one script that did this and more; some really nice features to
the script were that you could specify the chars. to be generated and
how long the string should be.

Then I found out that the javascript algoritm was flawed; the seed
string could (theoretically) be hacked (the string is encrypted by the
app). So I got an Idea: How about creating a script that generates
random seed strings based on how you move your mouse on the screen?

This method should generate a string that's impossible to 'hack'. Could
anybody help me with script? It should - apoligies for the feature list - do the following:
  • Create ONE random string based on how the user moves the cursor over the screen
  • Allow user to specify the length of the string.
  • Allow user to specify the set of chars. to be used in string. The
    chars. should be specified in a text field that already contains a-z and 0-9.
Here is a use case:
  1. User enters length of the seed to be generated. E.g. 256
  2. user types in chars. to be used in seed. E.g. 1234567890abcdefgh
  3. User hits the "Generate seed!" button
  4. The script generates chars til the specified seed length is meet. The
    string is automatically inserted in a textarea.
  5. The script informs the user that the seed has been generated using a window

Scripts of interest
Here are two javascripts that may be used in order to create this script:
Random Password Generator and JavaScript Capture Mouse.

I'm truly grateful for your help!
Again, sorry for this shamelessly detailed request.
Ian Mainim is offline  
Old 07-03-2003, 11:14 AM   #2 (permalink)
Senior Member
 
Join Date: Aug 2002
Posts: 1,300
2.85 NP$ (Donate)

deadserious has a spectacular aura aboutdeadserious has a spectacular aura about


Hey I probably woulnd't be much help with the JavaScript since I'm no good at it, but I'm just curious what is it actually going to be used for? Just wondering what purpouse it's going to serve?
deadserious is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:02 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85