Unable to encrypt password field with UI converter

I have a form in my solution with a few elements where one of them is a textfield, which is displayed as a Password field.
When a user edits the form, enters a password and saves it to the database, I wish to encrypt the password before it is stored in the database. To accomplish this
I use a UI converter with two methods:

encode() // receives a string and encrypts it

2) ```
decode() // receives the encrypted text and decrypts it

However, this works perfectly when the password in the textfield is shown as Plain text. When I change it’s settings to Password, the UI converter methods are not called.

Please some assistance.

that should work as far as i can see quickly, are we here in smart or webclient?

But besides that, what you are trying to do should not be possible anyway.

You should encode() it but you should never be able to decode() it. Because you should just store a hash nothing more.
In other words the system should never be able to give the user its plain password back.

jcompagner:
But besides that, what you are trying to do should not be possible anyway.

You should encode() it but you should never be able to decode() it. Because you should just store a hash nothing more.
In other words the system should never be able to give the user its plain password back.

Johan, sometimes, that is not possible. We use a converter encrypt and decrypt method, to store passwords, of 3th party services

so customer give you as an example their googles password?
I would never do that.
Thats why we have openid and the like

The (old) Google plugin, still uses that approach! :-)
Patrick, is building a next version, that uses indeed the oAuth approach
But also, we are connecting to VOIP servers, we need the user & password, to make the http request to the voip server, to make the call.

And so there are dozens of examples…