home *** CD-ROM | disk | FTP | other *** search
- uses
- eco_lib, crt
-
- ;
-
-
-
- var
- ch : char;
- sc : byte;
- password,
- s : string;
-
-
- begin
- if paramcount > 0 then password := copy(paramstr(1), 1, 39) else begin
- writeln('Usage ', __progname, ' passwd'); halt
- end;
- gotoxy(1, wherey-1); clreol; writeln(__progname, ' used.'); __savscn(scn1);
- __cls; writeln('Enter password:'); ch := #0; s := 'ami';
- repeat
- if __exrdykey(false, ch, sc) then begin
- ch := __dosinkey(sc);
- if length(s) > 40 then ch := #13;
- if (ch = #13) then s := '' else s := s + ch;
- write('*');
- end;
- if ch = #13 then begin gotoxy(1, wherey); clreol end;
- until pos(password, s) > 0;
- __resscn(scn1);
- end.
-