Skip to content

Add Jasypt module for encrypted properties#2136

Merged
jknack merged 1 commit into
2.xfrom
jasypt
Nov 24, 2020
Merged

Add Jasypt module for encrypted properties#2136
jknack merged 1 commit into
2.xfrom
jasypt

Conversation

@jknack

@jknack jknack commented Nov 23, 2020

Copy link
Copy Markdown
Member
  • Added Environment.setConfig(Config) too

Fixes #2127

@jknack jknack requested a review from imeszaros November 23, 2020 18:52

@imeszaros imeszaros left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! For me, a total newbie with Jasypt, only one thing is unclear, how do I encrypt my passwords in the first place? But I guess who wants to use this module knows it already :D

/**
* Creates a PBE encryptor from application property files. The given key is used for reading
* jasypt password and possible other customization. Please note the <code>key.password</code>
* must be present in other to configure proper password setup.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: 'in order' instead of 'in other'

* jasypt password and possible other customization. Please note the <code>key.password</code>
* must be present in other to configure proper password setup.
*
* Properties properties:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: 'Properties' is duplicated

- Added Environment.setConfig(Config) too

Fixes #2127
@jknack

jknack commented Nov 24, 2020

Copy link
Copy Markdown
Member Author

Good question. I do it manually... using encryptor.encrypt(). Isn't that hard that is way I didn't add anything.

@jknack jknack added the jasypt label Nov 24, 2020
@jknack jknack added this to the 2.9.4 milestone Nov 24, 2020
@jknack jknack merged commit a68da12 into 2.x Nov 24, 2020
@imeszaros

Copy link
Copy Markdown
Member

Ah i found they have a command line utility for that: http://www.jasypt.org/cli.html

@jknack

jknack commented Nov 24, 2020

Copy link
Copy Markdown
Member Author

That's cool! I didn't know it, we could probably add a note/link to the doc.

@jknack jknack deleted the jasypt branch March 23, 2023 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jasypt: encrypt properties

2 participants