ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.87k stars 514 forks source link

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

Open mingcz0301 opened 10 months ago

mingcz0301 commented 10 months 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