Making a password system

Does anyone know how to do this? What I’m trying to achieve is a screen with a text entry box (where you enter a password), and if it’s the right one it will take you to the corresponding level. I’m assuming it uses Python, so I’m guessing it would go something like this:

Cheese Level = scene.cheese
Cake Level = scene.cake
password = raw_input()
if password == "cheese":
     Scene = Cheese Level
elif password == "cake"
     Scene = Cake Level

…except it would use correct Blender statements.
Also a way of displaying the text being typed in would be helpful:yes:

http://blenderartists.org/forum/showthread.php?t=87446 contains everything you need to know, including passwords and game text display.
Search FTW :wink:

Thanks:D
I keep forgetting the search button’s there…:o

Hehe, shame on you :wink: