Password program for QB 4.5 
Author Message
 Password program for QB 4.5

Quote:

> Newsgroups: comp.lang.basic.misc
> Subject: [News] Password porgram for QB 4.5
> Date: Tue, 19 Mar 96 04:52:22 GMT
> I have made a program I would like to password portect, the only problem I
> am having is that I can't get the words the user is typing in to look like
> "*"'s can anyone help?

Hi,Daniel!
Try this:

'
' Simple PassWord demo program. Use and enjoy !
'
  DEFINT a-z
  Colomn=1
  Row=1
  KeyWord$="HELLO"
  PassLen=LEN(KeyWord$)
  COLOR 7,0
  CLS
  LOCATE Row,Colomn
  PRINT "Password, please = ";
'
  PassWord$=""
  COLOR 14,0
  FOR i=1 to PassLen
     c$=""
     LOCATE ,,1
     WHILE c$="" OR LEN(c$)=2 OR ASC(c$)=8 OR ASC(c$)=9
        c$=INKEY$
     WEND
     LOCATE ,,1: PRINT "*";
     PassWord$=PassWord$+c$
  NEXT i
'
  COLOR 7,0
  IF PassWord$ = KeyWord$ THEN
     PRINT " Excellent PassWord !"
  ELSE
     PRINT " Bad, bad, bad !"
  END IF
'
  END
'
'

 Best wishes,
 Alexander.



Tue, 15 Sep 1998 03:00:00 GMT  
 Password program for QB 4.5
Hello alexander,


 AP> Try this:
Just a small tip...

 AP>   KeyWord$="HELLO"
Compile it, and search in the .EXE file for "HELLO".
See, what's there, the password!!!
Try something like:
KeyWord$ = CHR$(1) + CHR$(2) + CHR$(3)
But then with the asciicodes representing the letters HELLO...

Mazzel               /----------------------------------------------\

                     |    * FidoNet : 2:281/607.11 + 2:500/155.6209 |
                     \----------------------------------------------/

... Brain: apparatus used to think we think.
SEEN-BY: 100/0 100 250 400 402 450 200/100
--
| Standard disclaimer: The views of this user are strictly his own.



Sat, 19 Sep 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Password porgram for QB 4.5

2. Incorporating non-QBasic graphics into QB 4.5 programs

3. Modem program for QB 4.5

4. How to take pictures into your QB 4.5 or PB program

5. Maximum size of QB 4.5 programs?

6. Scientific programming in QB 4.5

7. Problem with QB 4.5 program

8. need help: MSCDEX CD-ROM programming in QB 4.5

9. CALLING A QB 4.5 PROGRAM by phone?...

10. QB 4.0 Docs/QB 4.5 Wanted

11. want QB 4.5 QB 7.1 FOR FREE!!!

12. Where's QB.LIB in QB 4.5?

 

 
Powered by phpBB® Forum Software