Activity Stream
93,234 MEMBERS
58 ONLINE
Random password generator Random password generator Random password generator Random password generator Random password generator
Results 1 to 1 of 1
  1.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #1

    Smile Random password generator

    Source Code : 
        #!/usr/bin/perl
        # Script: Random password generator
        # Fri 03 Dec 2010 01:30:24 PM CET
        #use strict;
         
        # List of chars. Modify this if you need to add more, like simbols, etc...
        
    my @chars qwa b c d e f g h i j k l m n o p q r s t
        u v w x y z A B C D E F G H I J K L M N
        O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7
        8 9 
    );
         
        
    # The array of the password.
        
    my @password = ("");
         
        
    # Select a random char from the array @chars and introduced into the array @password.
        
    sub pass_gen {
        
    my $rand int(rand(@chars));
        
    my $add_char $chars[$rand];
        
    push(@password$add_char);
        }
         
        
    # The length of the password. If none is supplied externally, given the value of 8.
        
    my $length shift || 32;
         
        
    # Call the function pass_gen X (the value stored in $lenght) times.

    [Login or Register to remove this advertisement]

        
    for (my $x 1$x <= $length$x++) {
        &
    pass_gen();
        }
         
        
    # Print the password without spaces.
        
    print "Here is your password:\n";
        print @
    password grep "$_} @password"\n";
         
        
    #End of file 
    [email protected]$h Reviewed by [email protected]$h on . Random password generator #!/usr/bin/perl # Script: Random password generator # Fri 03 Dec 2010 01:30:24 PM CET #use strict; # List of chars. Modify this if you need to add more, like simbols, etc... my @chars = qw( a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 ); Rating: 5


  2. The Following 1 Users Say Thank You to [email protected]$h For This Useful Post:
    [ Click to Expand ]

    Rebel (4th March 2012)

  3.   Advertisements

Thread Information

Users Browsing this Thread

There Are Currently 1 Users Browsing This Thread. (0 Members and 1 Guests)

Similar Threads

  1. Advanced Password Generator v1.21
    By mangyang in forum Android OS Applications
    Replies: 0
    Last Post: 16th March 2012, 10:30 AM
  2. Python Password Generator
    By Xcode in forum Python
    Replies: 5
    Last Post: 4th March 2012, 01:39 PM
  3. Password Generator v1.1.0 by Denis Mingulov
    By AshuGite in forum MeeGo Applications
    Replies: 0
    Last Post: 9th February 2012, 01:19 PM
  4. [SIS] Random Password Generator v1.00(0) S^3 Anna Belle Signed Retail Vanz_smurf
    By Ayurvedic in forum Symbian OS^3 Applications
    Replies: 0
    Last Post: 17th November 2011, 10:22 AM
  5. [Qt] Random Password Generator Symbian OS 9.x S^1 S^3 Anna Belle Signed Retaiil Vanz_smurf
    By Vanz_smurf in forum Symbian S60 v5th ^1 (i8910HD,5800,N97,Mini,X6) Apps
    Replies: 2
    Last Post: 16th November 2011, 08:48 PM

Tags for this Thread

BE SOCIAL
Random password generator Random password generator Random password generator Random password generator Random password generator