iMacros fills all login dialogs for you using the ONLOGIN command. The password is stored with the method you selected on the Security tab of the Options dialog. More details about the different password storage options can be found here.
Login Dialog Sample
Page URL http://www.iopus.com/imacros/help/dialog_login.htm