Blender Git Commit Log

Git Commits -> Revision 2821f82

Revision 2821f82 by Jiri Hnidek (master)
October 26, 2012, 12:58 (GMT)
* New string property subtype: PASSWORD

When this new subtypes is used, then string of property is hidden using
asterisks, e.g.: mysecretpassword -> ****************

This code was reviewed and modified by Brecht. Thanks very much:

This new subtype of string property is intended mostly for Add-on developers
writing Add-on which communicates with some server (http, sql, ftp, verse,
etc.). When this server requires user authentication and user has to type
username and password, then current API didn't allow to type 'hidden' password,
e.g. when you want to demonstrate this script, then everybody can see this
security password. Some examples of Add-on which could use this new subtype:
- On-line database of textures
- Integration of render farm
- Integration of Verse

Security Notes:
- You can copy paste hiddent string of property from text input using (Ctrl-C, Ctrl-V),
but you can do this in other GUI toolkits too (this behavior it is widely used).
- Text of string property is stored in plain text, but it is widely used in other
GUI toolkits (Qt, Gtk, etc.).

Simple examples:

Commit Details:

Full Hash: 2821f822c52146e2e6fbcdeb70232ad2fd9a176f
SVN Revision: 51658
Parent Commit: 608d62f
Lines Changed: +117, -22

8 Modified Paths:

/source/blender/blenlib/BLI_string_utf8.h (+2, -0) (Diff)
/source/blender/blenlib/intern/string_utf8.c (+32, -18) (Diff)
/source/blender/editors/interface/interface_handlers.c (+70, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+3, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+7, -2) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -0) (Diff)
/source/blender/makesrna/RNA_types.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_props.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021