Home > Adobe Flash, Adobe Flex > Flex Random Password Generator

Flex Random Password Generator

Here’s a nice static method for creating random passwords…should the need ever arise ;)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public static function generateRandomPassword( length:int = 7 ) : String
{
	//characters to use in password
	var _salt : String = "abchefghjkmnpqrstuvwxyz0123456789ABCHEFGHJKMNPQRSTUVWXYZ";
 
	//initialize vars
	var _password : String = '';			
	var _i:Number = 0;
 
	//loop 
	while ( _i <= length )
	{
		var _num : Number = Math.random() * _salt.length;
		_password += _salt.charAt( _num );
		_i++;
	}
 
	return _password;
}

Enjoy!

Categories: Adobe Flash, Adobe Flex Tags:
  1. December 24th, 2014 at 00:49 | #1

    A pergola grosfillexx is more durable, so be prepared too pay in near
    fuure for similar product called polyethylene.

  2. December 31st, 2014 at 19:51 | #2

    When I initially commented I seem to have clicked the -Notify me
    when nnew comments are added-checkbox and from noow onn each time a coomment is added I recieve four emails with the exacdt same comment.
    There has to be a means you are able to remove me from that service?
    Thanks a lot!

  3. January 13th, 2015 at 00:23 | #3

    This unit is made from recycled post-consumer and
    post-industrial recycled plastics make great pieces of outdoor furniture.
    The liquid is then formed into typical wood profiles that
    will be removed by applying a wax at the Indian Ocean,
    the Teak grown today is designed to be produced in quantities easily.
    Not only that, you’ll want to follow this guide in choosing the suitable care and deliberate cleaning.
    So do your research in advance, and cushions. You are contemplating your nardi furniiture first nail.

  4. January 15th, 2015 at 09:43 | #4

    ¿Qué está pasando , este fin de semana es agradable a favor de
    mí, por la razón que momento estoy leyendo este gran gran informativo pieza de escritura aquí en mi casa residencia.

  5. January 15th, 2015 at 11:36 | #5

    Extractul de Urzica este diuretic, detoxifiant si combate celulita,ajutand la pastrarea unei stari
    generale bune. Extractul de Anghinare are actiune antioxidanta si efect coleretic, stimleaza functionareea celulei hepatice si reducee nivelul colesterolului
    din sange. In combinatie,cele doua ingrediente auta la mentinerea unui control eficient
    al greutatii corporale,contribuie lla arderea grasimilor si la
    mentinerea lor la un nivel scazut ,intensifica proceseoe
    metabolice.Acidul folic are un roll important in asimilarea substantelor nutritive din alimente si la utilizarea suprrioara a proteinelor ,precum si la formareaa de celule noi
    in organism.

  6. January 19th, 2015 at 01:21 | #6

    A fascinating discussion is worth comment. There’s no doubt that that
    you ought tto publish more on this subject matter, it
    may nnot be a taboo matter but usually folks don’t speak about such subjects.
    To the next! All thhe best!!

  7. January 21st, 2015 at 23:12 | #7

    Quality articles is the secret to attract the users to pay a quick visit the site, that’s what
    this web page is providing.

  8. January 22nd, 2015 at 18:04 | #8

    Very good info. Lucky me I discovered your site by accident (stumbleupon).
    I have bookmarked it for later!

  9. January 25th, 2015 at 02:24 | #9

    These zippers are easily cleawned with ordinary grosfillex bahia normal water and herbicides, aand stain resistance.
    There are grosfillex bahia actually produced in Jepara,
    a small or very big. It is necessary to paint your teak furniture is known for its good
    looks. Is your oudoor furniture in set, fully outdoor display system & accessories.

    When it’s time to extend the life if you
    want the hinge socket.

  10. January 26th, 2015 at 16:46 | #10

    Whats up very nice blog!! Man .. Excellent ..
    Superb .. I’ll bookmark your blog and take the
    feeds also? I’m satisfied to seek out so many useful information right here within the post,
    we’d like work out more strategies in this regard,
    thanks for sharing. . . . . .

  11. March 6th, 2015 at 15:09 | #11

    There will need Monthly self-exams Attention to breast tumors all radiate heat from within by natural mechanisms
    that stimulate the growth of malignant tumours. Her sister, or BMI,
    which raising money for breast cancer run appears in high school!
    Overweight: Increased body weight. We like to screen much earlier than we know better and happier life?

  12. June 7th, 2015 at 22:02 | #12

    This post provides clear idea designed for the new
    viewers of blogging, that actually how to do blogging and site-building.

  13. June 12th, 2015 at 03:06 | #13

    That is really attention-grabbing, You are an overly
    skilled blogger. I have joined your rss feed and sit up for in search
    of extra of your wonderful post. Also, I’ve shared your
    website in my social networks

  14. June 16th, 2015 at 02:10 | #14

    Pretty! This has been a really wonderful article. Thanks for providing this info.

  15. September 1st, 2015 at 06:20 | #15

    For latest information you have to visit world wide web and on internet
    I found this site as a most excellent site for most
    up-to-date updates.

  16. March 14th, 2016 at 08:54 | #16

    A little round table situated to the side of the desk area makes it
    possible for teams to share ideas in a a lot more intimate and informal setting.

  17. March 14th, 2016 at 11:30 | #17

    Consider vibrant lighting for tasks that need to have it, subdued
    back-lighting on your monitors for reduced eye
    strain , and common lighting to brighten the location up.
    Lighting is specifically critical if you are dealing with a space that has
    small or no organic light.

  18. March 15th, 2016 at 11:49 | #18

    Nothing thrilling. Boat was sort of not the
    common Boat formed that one is used to. It was extra of a Rectangular formed full white one.

  19. March 27th, 2016 at 16:25 | #19

    This would possibly intuitively seem to be a terrific
    description of what you do, however if you happen to’re selling to Fortune 100
    firms, many of the site visitors for this very aggressive
    term shall be searchers who don’t have any curiosity in buying
    your software program (and the folks you do wish to reach would possibly never purchase your costly,
    complicated solution based mostly on a easy Google search).

  20. April 1st, 2016 at 15:52 | #20

    Just like trenbolone, the hormone nandrolone doesn’t aromatize, thus it doesn’t exhibit estrogenic unintended effects.

  21. April 2nd, 2016 at 08:21 | #21

    Ohio Mid-Western College, formerly often called Temple Baptist
    College, was based in 1972.

  22. April 13th, 2016 at 14:23 | #22

    Before you start, it’s best to perceive that being
    among the prime three rankings in search engine results might be achieved, however not with out great effort.

  23. April 25th, 2016 at 14:41 | #23

    Bij pijnklachten of spoedgevallen graag voor 9:00 uur bellen.

  24. September 1st, 2016 at 12:52 | #24

    pretty lovely snapshots!

Comment pages
1 2 439
  1. No trackbacks yet.