system.security.setPassword

I use database authentification. I could do an update statement on the password but I don’t know how to encode it to get the right string to put in the database. It’s why I was asking for a system.security.setPassword script function. Also, with a system.security.setPassword script function, it would be possible to change the password with any kind of user source.