Using Windows Form with InfoPath 2003

InfoPath 2003 does not provide any password field. So, storing passwords on the form is not recommended as it is in clear text.

To have something really critical as passwords on the InfoPath forms is not a straightforward task.
I've used a workaround for this.

I'll showup a Windows Form and capture the credentials on that form, encrypt the credentials there and save that encrypted information back on the InfoPath form. This way, the user will never get to read the password in clear text.

Attached is the sample InfoPath form which opens a Windows Form to capture the credentials. I've removed all the encryption code from that to keep it simple and straight forward. Please let me know if there are any better ways to do this or you want more information about this...

WinForms.zip