0

In my gradle project, I am using Dropwizard Crypto for encrypting passwords. I have added the passphrase to IntelliJ env variable and when running "gradlew run" task got the error that can't decrypt. I have also added the env variable to ~/.bash_profile and run the IntelliJ from terminal and got same error. It works perfectly fine on Windows but on Mac not working (My os is Sierra 10.12) I have tried running the gradlew run task from terminal and got same error. Any help appreciated.

Sara
  • 2,308
  • 11
  • 50
  • 76
  • I debugged and went deeper and found out that this was the issue: http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters – Sara Nov 30 '16 at 04:14

2 Answers2

1

It should probably be in

~/.bash_profile (with a dot)

or

~/.profile
Mark Setchell
  • 191,897
  • 31
  • 273
  • 432
1

Try to

export IntelliJ=passphrase

from a terminal session and run gradlew from the same session.

Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
  • I tried that and it didn't work. In terminal if I echo the value it will show the password. but gradlew run from IntelliJ and command line not working – Sara Nov 29 '16 at 17:16