Java Play Encrypt Database Password

后端 未结 2 1191
一整个雨季
一整个雨季 2021-01-26 17:45

I\'m developing a Java Play application and I\'m storing the Database password in plain text inside the application.conf file.

db.default.url=\"jdbc:oracle:thin:         


        
2条回答
  •  攒了一身酷
    2021-01-26 18:04

    Is there any other way to store password in encrypted format other than a plugin.

    Well you could create your own formula for encrypting and decrypting the password. For example you can store the password in character array, make characters into bytes, do something to those bytes and save it into a file. For decrypting you just do all that stuff backwards.

提交回复
热议问题