Answered by:
HOWTO Make a column a password column for SharePoint 2010.

-
HOWTO Make a column a password column for SharePoint 2010. ======================================================================================================================== Is there a way this can be done so a column added to a list is always displayed in garbled password text (like ******)? Looking at all the SPField classes and the GUI of Share Point 2010, I do not see any way this can be done, without making some new weird custom field.
Question
Answers
-
Um, you can do that. Field display template is just an ascx user control. It's assumed you're displaying content based on proper permissions so shouldn't be storing passwords directly in a list anyway.
- Marked as answer by Wayne Fan Wednesday, February 09, 2011 2:15 AM
All replies
-
In a custom field type make a custom field display template for handling that.
http://msdn.microsoft.com/en-us/library/ms446361.aspx will get you started
-
NVM... Another complete waste of time. I will instead make a simple ASPX to prompt for a password and encryption key as <input type=password> on both, then call a sinple ASMX to use C# to encrypt the text. Then cut/copy/paste the encrypted string to the field in Share Point 2010, as it has not such control built (evidently), and then to extract the password in my code, I'll call a C# Decrypt. Seems so sad <input type=password> is too much to ask for in SharePoint 2010.
-
Um, you can do that. Field display template is just an ascx user control. It's assumed you're displaying content based on proper permissions so shouldn't be storing passwords directly in a list anyway.
- Marked as answer by Wayne Fan Wednesday, February 09, 2011 2:15 AM
-