NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #2081 most downloaded on pub.dev
Dart bindings for libsodium, for the Dart-VM and for the Web
Last release 9 days ago
29 Sep 2026
Release timing varies
gaps range from 1 weeks to 8 months
Most releases are documented
notes for 50 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
62 releases · first in 2021
One column per quarter.
Updated embedded libsodium binaries
crypto.pwhash.call has been deprecated in favor of crypto.pwhash.callStr and crypto.pwhash.callRaw
crypto_aead_aegis256 (https://libsodium.gitbook.io/doc/secret-key\_cryptography/aead/aegis-256)crypto_kdf_hkdf (https://libsodium.gitbook.io/doc/key\_derivation/hkdf)crypto_ipcrypt (https://libsodium.gitbook.io/doc/secret-key\_cryptography/ip\_address\_encryption)crypto_kem (https://libsodium.gitbook.io/doc/public-key\_cryptography/key\_encapsulation)crypto_xof (https://libsodium.gitbook.io/doc/hashing/xof)encoding parameters to crypto_pwhash and the from/to string conversion helperscrypto.pwhash.call has been deprecated in favor of crypto.pwhash.callStr and crypto.pwhash.callRaw
Int8List as before or a String with a customizable encodingThe package and it's documentation are available at pub.dev.
Updated embedded libsodium binaries
Updated dependencies, including ffigen with updated generations
cl.exe (#193)The package and it's documentation are available at pub.dev.
Updated min sdk version to ^3.12.0
-Wl,-Bsymbolic-functions
The package and it's documentation are available at pub.dev.
Updated embedded libsodium binaries
Drop -l flag from bash invocation for make on windows
-l flag from bash invocation for make on windows (#192)The package and it's documentation are available at pub.dev.
Updated embedded libsodium binaries
The package and it's documentation are available at pub.dev.
The package and it's documentation are available at pub.dev.
Updated embedded libsodium binaries
Updated embedded libsodium binaries
Thanks to the use of native assets and build hooks in the main sodium package, this library is not needed anymore and can be removed. The main sodium
sodium package, this library is not needed anymoresodium package will now directly include the embedded libsodium binaries for allThe package and it's documentation are available at pub.dev.
Sodium instances can now be passed between isolates (the limitation for keys still applies)Updated embedded libsodium binaries
Updated min required dart SDK to 3.8.0
Updated min required dart SDK to 3.7.0
Updated min required dart SDK to 3.6.0
Allow SecureKeys and KeyPairs to be disposed more then once
Fixed wrong invalid buffer offset for signedView() and unsignedView()
signedView() and unsignedView()Improved performance by removing unnecessary byte array copies for output data
Added low level isolate helpers
Added crypto_sign_ed25519_pk_to_curve25519 and crypto_sign_ed25519_sk_to_curve25519 sumo functions
crypto_sign_ed25519_pk_to_curve25519 and crypto_sign_ed25519_sk_to_curve25519 sumo functions (#123)ready property on LibSodiumJSServe as a replacement for the deprecated push and pull APIs
crypto.secretStream.pushChunked and crypto.secretStream.pullChunked
push and pull APIschunkSize that is used to partition the incoming binary
data into fix-sized chunks, just as the API expects.crypto.secretStream.push and crypto.secretStream.pull
Stream<List<int>> in dart typically means an "arbitrary binary stream"pushChunked and pullChunked as replacement### Changed - Improved documentation - Updated dev dependencies - Fix linter issues
Added override for SodiumSumo.runIsolated that passes a SodiumSumo instance to the callback
Updated min required dart SDK to 3.5.0
\[BREAKING\] Removed deprecations
BigInt for crypto.kdf.deriveFromKeys subKeyId
dart:js\_interop and package:web libraries
pwhash and aead from the non-sumo API
SodiumInit.init* methods
SodiumInit.init*2 methods have been renamed to remove the 2Updated min required dart SDK to 3.3.0
### Fixed - Fix pana linter issues
Update supported libsodium version to 1.0.19
### Changed - Updated dependencies
Make compatible with cider 0.2.6
sodium.crypto.aead was renamed and thus deprecated. Use sodium.crypto.aeadXChaCha20Poly1305IETF instead.
crypto_aead_chacha20poly1305 as sodium.crypto.aeadChaCha20Poly1305. (#61)sodium.crypto.aead has been renamed to sodium.crypto.aeadXChaCha20Poly1305IETF. The implementation has not
changed, only the name of the getter. (#61)sodium.crypto.aead was renamed and thus deprecated. Use sodium.crypto.aeadXChaCha20Poly1305IETF instead. (#61)Update min required dart SDK to 3.1.0
Remove non libsodium definitions from generated ffi code
SodiumInit.init2 and SodiumSumoInit.init2 - these methods replace the now deprecated .init methods
SodiumInit.init2 and SodiumSumoInit.init2 - these methods replace the now deprecated .init methods (#24)
Sodium.runIsolated APIsKeyPair.copy and KeyPair.dispose methods to copy and dispose a key pair (#24)Sodium.runIsolated method to allow execution of cryptographic operations on a separate isolate (#24)sodium.crypto.pwhash API has been deprecated for non sumo variants of sodium
SodiumSumo APIs still fully support pwhashSodium APIs do not anymoresodium.js, as there the pwhash APIs 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 the pwhash APIs will throw
an exception!pwhash APIs, simply switch to using the sumo variant of the librarySodiumInit.init - use SodiumInit.init2 instead for support of the new Sodium.runIsolated APIs (#24)SodiumSumoInit.init - use SodiumSumoInit.init2 instead for support of the new Sodium.runIsolated APIs (#24)Sodium.secureHandle, SecureKey.fromNativeHandle and SecureKey.nativeHandle APIs (#24)
Sodium.runIsolated insteadImplemented temporary workaround for #22 until https://github.com/flutter/flutter/issues/116405 is fixed
Removed all previously deprecated APIs
SodiumSumo class that extends the basic sodium APIs with advanced APIs.
package:sodium/sodium_sumo.dart import and can be initialized with
SodiumSumoInit.initcrypto.scalarmult as sumo interface for https://libsodium.gitbook.io/doc/advanced/scalar_multiplicationcrypto.sign as sumo interfaceSign.skToSeed and Sign.skToPk methods into SignSumoNothing published for this version
Fixed performance issue that caused the "dart -> native" copy process of bytes to take extremely long
Let GenericHashConsumer implement Sink to allow synchronous adding of data
GenericHashConsumer implement Sink to allow synchronous adding of dataSignatureConsumer implement Sink to allow synchronous adding of dataVerificationConsumer implement Sink to allow synchronous adding of dataJsError.wrap to jsErrorWrap to prevent problems when debugging JS applicationsActivate stricter linter rules, fix resulting issues
Set minimum required dart SDK version to 2.18.0
Add missing tests and coverage ignores
Updated minimum required dart SDK to 1.17.0
Support for 32bit architectures by generalizing the native FFI bindings
Set minimum required dart SDK version to 2.15
Replaced lint with dart_test_tools which makes the default rules of lint even more strict
lint with dart_test_tools which makes the default rules of lint even more strictAdded missing skToSeed and skToPk methods to crypto.sign
skToSeed and skToPk methods to crypto.sign (#4)The initNative parameter of SodiumInit.init has been deprecated as it no longer has any effect
SodiumInit.init now automatically handles multiple initializations and no longer requires the initNative parameter for consecutive invocations (#3)initNative parameter of SodiumInit.init has been deprecated as it no longer has any effect (#3)SecureKey.split extension that allows to split one key into multiple
SecureKey.split extension that allows to split one key into multiple (#2)SecureKey.nativeHandle and SecureKey.fromNativeHandle to allow passing secure keys across isolate boundariesSodiumInit.init can now be called with initNative: false to disable initialization of the native library, in case it has already been initialized[4.1.1+2]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v4.1.1+1...sodium-v4.1.1+2 [4.1.1+1]: https://github.com/Skycoder42/li
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →