Article View: comp.lang.pascal.ansi-iso
Article #2Re: passwords
From: Dr John Stockton
Date: Sun, 08 Oct 2000 00:00
Date: Sun, 08 Oct 2000 00:00
45 lines
3228 bytes
3228 bytes
JRS: In article <8ro05r$64a$1@gxsn.com> of Sat, 7 Oct 2000 21:05:56 crossposted to borland.public.turbopascal,comp.lang.pascal.ansi- iso,comp.lang.pascal.borland,comp.lang.pascal.misc, Craig Hennessey <craig@craighennessey.co.uk> wrote: >i need to write a password protection screen into my a-level project. what i >need to know is how do i ask for a password, and let the user type the >password in, without displaying what the user is typing in? i have seen this >done somewhere, but i cant remember where! ive checked the FAQs and a couple >of user guides, but can find nothing on the subject, maybe ive missed it? >i think i can cope with the rest of this password thing, apart from maybe >encryption! but i think as far as a-level projects go, that can wait for >another day! You have posted to far too many newsgroups. borland.* groups ask for no cross-posting, and you are using an incorrect server. Use forums.borland.com, etc., for news:borland.*. NGs re-ordered. You have not specified which dialect of Pascal you are using, and you have posted to three non-overlapping groups in comp.*; PFOWYADBYDI. You appear to have been rather ineffective at checking the FAQs, since this question is answered in TSFAQP #38 (which FAQ, IIRC, you have already been advised to study & keep a copy of), and can be found there by a search for "password". The solution in TSFAQP is far better than any colour-changing one; with those, the password may be disclosed later by "screen-scraping" unless it is over-written or scrolled off. My http://www.merlyn.demon.co.uk/pas-extn.htm includes a way of performing a character read without using ReadKey or Crt. Extension to displaying stars is easy enough, if the display supports #8 which I think it will. FU clpb only. -- � John Stockton, Surrey, UK. jrs@merlyn.demon.co.uk Turnpike v4.00 MIME. � Web <URL: http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links. Proper 4-line sig. separator is as above, a line exactly "-- " (SonOfRFC1036) Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Technical Details
Message-ID:
<fh4rUQEprJ45Ewsi@merlyn.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8ro05r$64a$1@gxsn.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10c950,e9752a9b4bc25398 X-Google-Attributes: gid10c950,public X-Google-Thread: 10261c,e9752a9b4bc25398 X-Google-Attributes: gid10261c,public X-Google-Thread: 111659,e9752a9b4bc25398 X-Google-Attributes: gid111659,public X-Google-Thread: 108ebd,e9752a9b4bc25398 X-Google-Attributes: gid108ebd,public From: Dr John Stockton <spam@merlyn.demon.co.uk> Subject: Re: passwords Date: 2000/10/08 Message-ID: <fh4rUQEprJ45Ewsi@merlyn.demon.co.uk> X-Deja-AN: 679042024 Content-Transfer-Encoding: 8bit X-NNTP-Posting-Host: merlyn.demon.co.uk:158.152.233.145 References: <8ro05r$64a$1@gxsn.com> Followup-To: comp.lang.pascal.borland Content-Type: text/plain;charset=iso-8859-1 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 971033438 nnrp-12:24054 NO-IDENT merlyn.demon.co.uk:158.152.233.145 Organization: Home, 'Surrey', UK MIME-Version: 1.0 Reply-To: Dr John Stockton <jrs@merlyn.demon.co.uk> Newsgroups: comp.lang.pascal.ansi-iso,comp.lang.pascal.borland,comp.lang.pascal.misc,borland.public.turbopascal