NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #2143 most downloaded on pub.dev
Dart bindings for libsodium, for the Dart-VM and for the Web
Latest stable
4.1.2+1
Last release 26 days ago
27 Oct 2026
Release timing varies
gaps range from 1 weeks to 8 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
65 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Updated embedded libsodium binaries
The package and it's documentation are available at pub.dev.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Updated min sdk version to ^3.13.0
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.
Updated embedded libsodium binaries
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.
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
The package and it's documentation are available at pub.dev.
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 min sdk version to ^3.12.0
The package and it's documentation are available at pub.dev.
Updated embedded libsodium binaries
Updated embedded libsodium binaries
The package and it's documentation are available at pub.dev.
Introduced native assets! This comes with a number of benefits:
Sodium instances can now be passed between isolates (the limitation for keys still applies)The package and it's documentation are available at pub.dev.
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.
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()
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 LibSodiumJSThe package and it's documentation are available at pub.dev.
Serve 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 replacementThe package and it's documentation are available at pub.dev.
[3.2.0+1]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v3.2.0...sodium-v3.2.0+1
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 2The package and it's documentation are available at pub.dev.
Update min required dart SDK to 3.3.0
[2.3.1+1]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v2.3.1...sodium-v2.3.1+1
Update supported libsodium version to 1.0.19
The package and it's documentation are available at pub.dev.
[2.3.0+1]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v2.3.0...sodium-v2.3.0+1
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)The package and it's documentation are available at pub.dev.
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 insteadThe package and it's documentation are available at pub.dev.
Implemented temporary workaround for #22 until https://github.com/flutter/flutter/issues/116405 is fixed
The package and it's documentation are available at pub.dev.
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 SignSumoThe package and it's documentation are available at pub.dev.
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 SignSumoThe package and it's documentation are available at pub.dev.
Fixed performance issue that caused the "dart -> native" copy process of bytes to take extremely long
The package and it's documentation are available at pub.dev.
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 applicationsThe package and it's documentation are available at pub.dev.
Activate stricter linter rules, fix resulting issues
The package and it's documentation are available at pub.dev.
Set minimum required dart SDK version to 2.18.0
The package and it's documentation are available at pub.dev.
Add missing tests and coverage ignores
The package and it's documentation are available at pub.dev.
Updated minimum required dart SDK to 1.17.0
The package and it's documentation are available at pub.dev.
Support for 32bit architectures by generalizing the native FFI bindings
Set minimum required dart SDK version to 2.15
The package and it's documentation are available at pub.dev.
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 strictThe package and it's documentation are available at pub.dev.
Added 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 initializedRefactor integration tests and CI scripts
Downgrade requirements for package meta to be compatible with flutter
Added missing tests for crypto_kdf
Only crypto_aead_xchacha20poly1305_ietf has been implemented for now
New libsodium API: crypto_shorthash
Added the beforenm/afternm variants of crypto_box
@internal on some internal classesNew libsodium API: crypto_generichash
One column per quarter.