Random String Generator

Miscellaneous programs and scripts, opensource or not, and sometimes, random mathematical stuff.
Post Reply
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Random String Generator

Post by Gamall »

This small program generates random strings made up with the characters you choose. Useful to create passwords and such automatically.

Just edit the .ini file with any brute text editor, such as notepad or wordpad, to alter the behaviour of the program :

Here is the default config file :

Code: Select all

/////////////////////////////
// RANDOM STRING GENERATOR //
//        Gamall           //
/////////////////////////////

// Config file



// The random string will be generated using the following characters :

$ base = ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

// Some other possible bases... Just comment (//) those which you do not need...

// $ base = ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&é#{([-|è_\ç^à@)]°=+}$£%ù*µ§!:/.,?
// $ base = ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789éèàç
// $ base = ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
// $ base = " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

// The random string will have the following length :

% length = 30

// The random string will be written to the following file :

$ output = Randomly_Generated_String.txt

// The following string will be used to "seed" the pseudo-random generation. 
// It would be a good idea to change this string BEFORE you use the program 
// to generate important passwords...

$ seed = "I am the standard seed, PLEASE CHANGE ME !!!!"
The generated string is written on the screen if it's short enough, and always stored in the output file.

You can DOWNLOAD THE PROGRAM HERE (Win 32).

EDIT : Added the "seed" functionnality to make the program more useful from a cryptographical point of view.

Screenshots :
Image
Image
Attachments
RSG.PNG
RSG.PNG (18.17 KiB) Viewed 32738 times
RSG2.PNG
RSG2.PNG (17.12 KiB) Viewed 32739 times
Random String Generator.zip
(107.99 KiB) Downloaded 1294 times
Last edited by Gamall on Tue Mar 27, 2007 9:23 am, edited 3 times in total.
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
User avatar
Beldin
Légumineuse Fractale de la Loi d'Ida
Posts: 824
Joined: Fri Jul 28, 2006 11:15 pm
Location: En prison pour délit de faciès

Post by Beldin »

A Quoi qu'ça sert un générateur aléatoire de culottes légères?
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Random String Generator

Post by Gamall »

/amslap beldin ;

Gamall wrote:Useful to create passwords and such automatically.
:archange

En fait, c'est très utile pour le fonctionnement interne d'un programme : windows, par exemple, génère en permanence des chaînes (non, rien à voir avec les culottes légères :P) aléatoires pour identifier les processus. PhpBB en génère aussi pour identifier les sessions, etc etc ...


Présenté dans un programme externe, comme c'est le cas ici, ça me sert surtout à générer de beaux mots de passe :fleur Ce programme est juste l'emballage d'une procédure qui tourne(ra) en interne dans un gros programme.
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
User avatar
Beldin
Légumineuse Fractale de la Loi d'Ida
Posts: 824
Joined: Fri Jul 28, 2006 11:15 pm
Location: En prison pour délit de faciès

Post by Beldin »

Ok, je me coucherais moins bête d'avoir un lut un truc intelligent.

Sans pour autant l'avoir compris....
C'est pas mon truc l'informatique... définitivement.
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Post by Gamall »

Y pas grand-chose à comprendre, là :livre


Donc non, tu ne te coucheras pas moins bête :fleur :fleur :fleur :fleur :fleur


:demon
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
User avatar
Maikoru
Jedi Perpétuellement Affamé
Posts: 485
Joined: Sun Aug 27, 2006 11:15 pm

Re: Random String Generator

Post by Maikoru »

Tu as une version de ce script pour linux ?
"..." -- Link
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Random String Generator

Post by Gamall »

Non, mais je peux en faire une.

Mais sous Linux tu as déjà des outils comme APG qui font ça et plus si affinités: (pas testé)

Code: Select all

sudo apt-get install apg
PS: Tu peux aussi simplement faire tourner mon programme sous Wine: c'est comme ça que je fais tourner mon vieux GaTeX sous Linux, par exemple ;)
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
User avatar
Maikoru
Jedi Perpétuellement Affamé
Posts: 485
Joined: Sun Aug 27, 2006 11:15 pm

Re: Random String Generator

Post by Maikoru »

Ah oui ça marche sous wine :D
J'aurais du tester ^^'
"..." -- Link
Post Reply

Who is online

Users browsing this forum: No registered users and 183 guests