0

I have an Spring Boot based application and a external HSQLDB folder that contains

  • db.data
  • db.properties
  • db.script

My application load & connect to this db, everything is fine. The problem is, that the username and passwword are written in db.script file as plain text.

How I can encrypt this?

Issam El-atif
  • 2,366
  • 2
  • 17
  • 22
Tristate
  • 1,498
  • 2
  • 18
  • 38
  • Does this answer your question? [Spring Boot how to hide passwords in properties file](https://stackoverflow.com/questions/37404703/spring-boot-how-to-hide-passwords-in-properties-file) – Issam El-atif Sep 03 '20 at 11:06
  • He does not want to encrypt the password in the `application.properties` but in the datsbase filed @Issam EL-ATIF – dan1st Sep 03 '20 at 11:45
  • @IssamEL-ATIF No, as I understand in that post he use a memory db with config data in his application.properties. My configuration is in db.script file. Its an external db file. Is it possble to create a user programmatically with Beans? – Tristate Sep 03 '20 at 11:59
  • @Tristate Sorry i thought it was in db.properties – Issam El-atif Sep 03 '20 at 12:06
  • Are you using HSQLDB 1.8? In the latest versions of HSQLDB 2.5.x there is only a password hash in the .script file. – fredt Sep 04 '20 at 05:56

0 Answers0