Repository navigation
Release of package sodium - Version 2.1.0
·
635 commits
to main
since this release
Changelog
2.1.0 - 2023-03-08
Added
SodiumInit.init2andSodiumSumoInit.init2- these methods replace the now deprecated.initmethods (#24)- This change was made to support the new
Sodium.runIsolatedAPIs - The new variants take callbacks instead of the already resolved binaries
- Your implementation should move the logic to load said binaries into these callbacks to allow the use of isolates.
- Check the README, the example and the documentation for more details
- This change was made to support the new
KeyPair.copyandKeyPair.disposemethods to copy and dispose a key pair (#24)Sodium.runIsolatedmethod to allow execution of cryptographic operations on a separate isolate (#24)
Changed
- Set minimum required dart SDK version to 2.19.0
- Update dependencies
Deprecated
- The
sodium.crypto.pwhashAPI has been deprecated for non sumo variants of sodium- The
SodiumSumoAPIs still fully supportpwhash - However, the simple
SodiumAPIs do not anymore - This is due to upstream changes in
sodium.js, as there thepwhashAPIs have been mode to the sumo variant of
this library. If you use the library with the newest non sumo sodium.js, trying to use thepwhashAPIs will throw
an exception! - If you need the
pwhashAPIs, simply switch to using the sumo variant of the library
- The
SodiumInit.init- useSodiumInit.init2instead for support of the newSodium.runIsolatedAPIs (#24)SodiumSumoInit.init- useSodiumSumoInit.init2instead for support of the newSodium.runIsolatedAPIs (#24)
Removed
- Removed the experimental
Sodium.secureHandle,SecureKey.fromNativeHandleandSecureKey.nativeHandleAPIs (#24)- They are not needed anymore to work around isolate limitations, as you can simply use
Sodium.runIsolatedinstead
- They are not needed anymore to work around isolate limitations, as you can simply use
The package and it's documentation are available at pub.dev.