How to encrypt password in mail password feild while using IMAP mail automation.
Password field in MailMessages activities are not secure string
have you tried Get Password Activity?
This activity will Encrypts a password by associating it with the current user. Only workflows running under the current user context can decrypt the password
use its output where you want to use it.