Hello Everyone!

I would like to create an encrypted database with hashed password and 
configure the connection from the application.properties.

I managed to encrypt the database and could connect to from my application. 
I also managed to hash an unencrypted database password and connect to it.

But somehow I cannot mix both.

My app properties is something like:

spring.datasource.url=jdbc:h2:file:~/<db_file>;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1;CIPHER=AES;PASSWORD_HASH=TRUE

spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=user
spring.datasource.password=hash_1 hash_2
spring.h2.console.enabled=true

I generated the hashes from console with the following commands:
@password_hash USER pass; -> result is hash_1

@password_hash file pass; -> result is hash_2

Should it work in this way or that two method is not compatible with each 
other?

Tha goal is to secure the db and the password as well.

Thank you!

Regards,
Levente

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to