One way encryption is fairly straight forward with Unix, and can be achieved using the "crypt" command (if available) or system call, or using the crypt() function in
Perl, PHP and others. The problem with this is exactly that - it's one way. You can't decrypt a "crypt"ed password (otherwise /etc/{passwd,shadow} would be useless as authentication mechanisms).
The problem is that the -P option to isql expects the "true" password, not an encrypted variant. It may or may not be visible in ps output listings.
Some related threads that might assist you can be found here:
Hiding password from ps
Hiding login/password in process!
I do a lot of PHP/PostgreSQL web programming, and I request the plain text login over https, then the "login" PHP script encrypts the password and checks it against the encrypted password stored within the "user" table (or whatever it may be called). Not too sure if you could create some kind of web enabled front end for Informix - we use curses for our Informix frontend at work.
Hope something there was of use!
Cheers
ZB