Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to mask out a string that will be a user password for loggining into an asset server?




share|improve this question
up vote 8 down vote accepted

Yes, use the subtype='PASSWORD' for a StringProperty:

bpy.types.Scene.password = bpy.props.StringProperty(subtype='PASSWORD')

You can add it to the Scene tab for a quick test by running:

    lambda self, context: self.layout.prop(context.scene, "password"))

The property can be read and written like any property, but each character is drawn as an asterix if added to a panel. It is also not shown in tooltip (since 2.70), but it's possible to copy and paste. The main purpose is to hide the password on screen for video recordings, not to protect or encrypt it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.