This page has been archived, and is no longer updated.

Hiding Passwords

How to hide a password while it's being entered

The most effective way to do this is write COLOR 0,0 before the

INPUT statement. This makes the password black-on-black. Example:
INPUT "Enter Password: " 
COLOR 0, 0
INPUT "", PASSWD$
COLOR 7, 0
IF PASSWD$ = "Secret" THEN
  PRINT "Access Granted"
ELSE
  PRINT "Access Denied"
END IF
(Download)

This looks like:

Enter Password:
Secret
Access Granted

(TODO: Add some encryption/obfuscation?)