sodium_libs 3.3.0+3 sodium_libs: ^3.3.0+3 copied to clipboard
Flutter companion package to sodium that provides the low-level libsodium binaries for easy use.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate sodium_libs
Use it
The package has the following executables:
$ sodium_libs_update_web
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add sodium_libs
With Flutter:
$ flutter pub add sodium_libs
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
sodium_libs: ^3.3.0+3
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:sodium_libs/sodium_libs.dart';