ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.93k stars 523 forks source link

AES256GCM, Base64 decod of key file failed... #376

Open mingcz0301 opened 1 year ago

mingcz0301 commented 1 year ago

Created under windows but key.b64 does not add 0A at the end of the line. The key.b64 file created under macos linux will add 0A at the end, causing base64 decoding to fail. Unless you use Vim to manually delete 0A, it won't work properly. Even using echo "base64" > key.b64 still has 0A. Especially when changing keys in stages, it becomes very troublesome Dear developers, can you use string trim after reading the key.b64 file content to increase compatibility?

image image