I don’t want to put unencrypted passwords in the application config file.
This question: Encrypting db password in application.conf has a great solution for the problem but it works only for Play 1.
Does anybody know a solution that works for Play 2.0? I am using anorm in Scala version of Play 2.0.2.
Thanks to discussion with Raffaele and following my own investigation of the code, it seems that Play 2.0 does not allow you to encrypt DB passwords.
If I missed something please let me know.
EDIT: One can work around the problem by using custom database driver in the following manner:
then you replace application.conf/db..driver by my.com.MyDecrypting driver. Not perfect but works for me…