Changes

Jump to: navigation, search

Micropendium Volume 1 Number 1

55 bytes added, 16:01, 19 November 2024
Password?
So you've got some top-secret programs that are for your eyes only. Your problem is how to keep the secret without getting a reputation for being unsociable. Here is a brief routine that can be written into a program that will ask a user for the password before running the program. You choose your own password.
''100-P$= "PASSWORD"''<br>''110-CALL CLEAR''<br>''120-INPUT "ENTER SECURITY PASSWORD": PW$''<br>''130-IF P$ <> PW$ THEN 32000''<br>  ''140-PRINT "CORRECT PASSWORD"''<br> ''32000-CALL CLEAR''<br> ''32010-PRINT "SECURITY VIOLATED"''<br> ''32020-PRINT "PROGRAM ABORTED"''<br>''32030-FO R I=1 TO 2000''<br>''32040-NEXT I''<br>
In this example, which comes from a users group in Sidney, Australia, you would write your program between lines 140 and 32000. You may number it any way you wish and add all manner of bells and whistles to let the "violator" know he's been found out.

Navigation menu

MediaWiki spam blocked by CleanTalk.