Bam Bam
2007-08-10 10:40:54
program PasswordGenerator;
//SCAR Password generator by Bam Bam
//Permission to redistribute with credit
//Feel free to add more characters to the string
//Help creating strong passwords:
//http://www.microsoft.com/protect/yourself/password/create.mspx
const
NTC = 1000; // Number of random passes to create
PLength = 12;// Length of passes
RLength = 0; // Length + RLength (0 for no length variation)
procedure AddLetterNumb(var Str: string);
var
TmpString: string;
begin
TmpString := '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
Str := Str + TmpString[randomRange(1, Length(TmpString))];
end;
function GenPass: string;
var
SLength, I: integer;
TempPass: string;
begin
SLength := PLength + random(RLength) + 1;
for I := 0 to SLength do
AddLetterNumb(TempPass);
Result := TempPass
end;
procedure Create;
var
I: integer;
begin
for I := 1 to NTC do
writeln(' ' + GenPass);
end;
begin
ClearDebug;
Create;
WriteLn('Created in: ' + inttostr(GetTimeRunning) + 'ms');
end.