server password

I am writing a our database configuration tool wherein the user will type in their database server username and password(where the database and repository server tables will be created) and it will be written in servoy.properties.

How would I be able to write a correct “encrypted” password?

example:

server.0.URL=jdbc\:postgresql\://localhost\:5432/bug_db
...
server.0.userName=DBA
server.0.password=encrypted\:XAFg2JKIdj0\=
...

Thanks!

Hi Rogel,

You can’t.
You can however type in the plain text password. Launch Server and stop it again, your passwords should be enrypted then in the servoy.properties because Server writes the properties file when you quit it.

Hope this helps.