Custom Fields, which would by default be hidden like password field but can be revealed by selected roles on the project.
Maybe only Assigned to person or Project manager would be able to revel the password/locked custom field.
Some thing like eye icon to revel password in the attached image.
Also, the hidden password would not be copy-able. Only once unlocked it will be copy-able