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

Add support of various loading modes: #52

Closed dmitry-timofeev closed 5 years ago

dmitry-timofeev commented 5 years ago

Make SodiumJava load the system version of the sodium library by default, and the bundled one if there is no one installed.

Add an interface to specify the loading mode explicitly.

Closes #51

dmitry-timofeev commented 5 years ago

There is a question if we shall change the default in 3.x. The default behaviour was not specified in the Javadoc, but, nevertheless, it is a change in behaviour, potentially, observable by the end-users.

gurpreet- commented 5 years ago

Your PR will be part of a new release: version 4 of the lazysodium library.

So if users want to stay on v3 they can so no changes in behaviour will be noted to pre-existing users.