terl / lazysodium-java

A Java implementation of the Libsodium crypto library. For the lazy dev.
https://github.com/terl/lazysodium-java/wiki
Mozilla Public License 2.0
135 stars 48 forks source link

Lazysodium does NOT respect LD_LIBRARY_PATH #36

Closed gurpreet- closed 5 years ago

gurpreet- commented 6 years ago

LD_LIBRARY_PATH points to all the native paths that the system should load. Lazysodium should also search the paths set by LD_LIBRARY_PATH so that it can load libsodium.so.

gurpreet- commented 5 years ago

Traversing the LD_LIBRARY_PATH looking for any relevant libsodium.dlls and libsodium.sos is proving to be a pain. Plus, on Android, there isn't much need to use environment variables. Another point in favour of not using this environment variable is that Lazysodium's entire ethos is that it should load automatically without any effort.