Create a Internet shortcut





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 Next »
2
Date Submitted Sun. Sep. 9th, 2007 12:15 PM
Revision 1
Beginner bala
Tags ASP | VBSCRIPT
Comments 0 comments

If you're using passwords of any type on your site, it is best to keep them random. That way they cannot be easily guessed at by intruders.

First, it's good to know a little about ASCII characters. Every character your keyboard can type is actually represented by a number. So the letter A is represented by 65. The letter Z is represented by 90. So all you need to do is generate a series of random numbers, each number between 65 and 90. That would give you a way to find the equivalent letters.

If you want to include numbers too, those are found between spots 48 and 57. I wouldn't use the spots between 57 and 65 - those are odd characters like colons.




So let's say you want to create a 7 character password that contains a random assortment of letters and numbers. You could do something like this:
4
Date Submitted Tue. Dec. 5th, 2006 2:50 PM
Revision 1
Scripter Casper42
Tags VBSCRIPT | wscript
Comments 0 comments
This was an update someone else's snippet...
VBScript is a graceful language and Windows Scripting Host cleans up after itself, so this is a compact version for simple usage - reducing code bloat is what small scripts are for.

Just my $.02...
-5
Date Submitted Tue. Feb. 28th, 2006 5:20 AM
Revision 1
Syntax Master dannyboy
Tags ASP | Convert | VBSCRIPT
Comments 0 comments
Convert a decimal symbol to a binary
-5
Date Submitted Tue. Feb. 28th, 2006 5:27 AM
Revision 1
Syntax Master dannyboy
Tags ASP | Convert | VBSCRIPT
Comments 0 comments
Displays the hex value for an HTML color given the decimal RGB values. Uses Internet Explorer to show the hex value in the color itself.

-2
Date Submitted Tue. Feb. 28th, 2006 5:34 AM
Revision 1
Syntax Master dannyboy
Tags ASP | Convert | VBSCRIPT
Comments 0 comments
A painfully simple method of viewing the contents of an ASP script via an ASP script.
-3
Date Submitted Tue. Feb. 28th, 2006 5:42 AM
Revision 1
Syntax Master dannyboy
Tags ASP | Convert | VBSCRIPT
Comments 0 comments
Converts Hex values to Decimal, useful for reading & converting values from the registry.
-4
Date Submitted Tue. Feb. 28th, 2006 7:18 AM
Revision 1
Syntax Master dannyboy
Tags VBSCRIPT
Comments 0 comments
This script shows you how a script can be self modifying, like viruses. It is a warning about the possibilities of new macro viruses
-6
Date Submitted Tue. Feb. 28th, 2006 9:30 AM
Revision 1
Syntax Master dannyboy
Tags ASP | VBSCRIPT
Comments 0 comments
If you're asking your users to submit a password of 6-12 characters, you want to make sure it is done properly and without any special characters which could compromise your system.

To do this, you would want to use regular expressions
-5
Date Submitted Tue. Feb. 28th, 2006 9:43 AM
Revision 1
Syntax Master dannyboy
Tags ASP | VBSCRIPT
Comments 4 comments
Validating the email address
-7
Date Submitted Tue. Feb. 28th, 2006 11:27 AM
Revision 1
Syntax Master dannyboy
Tags ASP | check | login | VBSCRIPT
Comments 1 comments
Check if a user is logged in or not
« Previous 1 2 3 4 5 6 Next »