Thread: Random Password Generator v1.0 - download it

  1. #1
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Cool Random Password Generator 1.0

    Hi!

    Please download the source code and tell me what you think. If you have any problems with the code then ask questions here.

    Here's the description:
    With this Win32 console application you can generate random passwords. This code is a good example of how you can use rand () function and WINAPI functions for keyboard and mouse input. You have five options available for generating a password. You select which characters you want to have in your password (lower case letters, upper case letters, numbers or symbols) and you can regulate the password length. The length can be between 0 and 10 characters.

    In the .zip file there are two files:
    rpg.c - the main source file of the application
    colors.h - my header for shorter names for console colors

    You can modify and distribute this code if you want to.
    Last edited by GaPe; 08-18-2002 at 01:25 AM.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #2
    $null
    Guest
    bad idea... if i know at what time you generated those passwords bingo ive got your pass... using time to seed rand is a bad idea for programs that require real randomness, granted its hard to achieve randomness on pc's even if you use something random like radioactive decay for your seed...

  3. #3
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    But you don't know when I generated my password. Do you have any better idea? If you do, please post it.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  4. #4
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    C'mon people. If you downloaded the code you could comment it too. I'm interested in your opinions.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. random password generator
    By cDev in forum C Programming
    Replies: 11
    Last Post: 07-07-2006, 10:07 AM
  2. [Q]Hide Password
    By Yuri in forum C++ Programming
    Replies: 14
    Last Post: 03-02-2006, 03:42 AM
  3. generate a random password
    By mabufo in forum C++ Programming
    Replies: 17
    Last Post: 02-23-2006, 05:57 PM
  4. Another brain block... Random Numbers
    By DanFraser in forum C# Programming
    Replies: 2
    Last Post: 01-23-2005, 05:51 PM
  5. written command line password generator
    By lepricaun in forum C Programming
    Replies: 15
    Last Post: 08-17-2004, 08:42 PM