You have to write above expression in Assign activity.
Create one Secure String variable and named as secure_str and assign that expression right hand side part and then pass into that password field.
Please find the below attached thread to know more about this.