Update property encryption content with note regarding omitting surrounding quotes when saving encrypted value in .properties file.

This commit is contained in:
Jon Alme
2015-08-31 10:48:15 -05:00
committed by Dave Syer
parent 33f5cfcdef
commit b191b91322

View File

@@ -338,6 +338,14 @@ spring:
password: '{cipher}FKSAJDFGYOS8F7GLHAKERGFHLSAJ'
----
Encrypted values in a .properties file must not be wrapped in quotes, otherwise the value will not be decrypted:
.application.properties
----
spring.datasource.username: dbuser
spring.datasource.password: {cipher}FKSAJDFGYOS8F7GLHAKERGFHLSAJ
----
You can safely push this plain text to a shared git repository and the
secret password is protected.