I will tell you step by step -
- variable type of “pass” should be secure string.
- create new string variable , suppose “strPassword”.
- Assign – strPassword=new System.Net.NetworkCredential(string.Empty, pass).Password
- in type into activity , give the variable “strPassword”
Hope it will help u