pinenacl 0.2.0-nullsafety.4 pinenacl: ^0.2.0-nullsafety.4 copied to clipboard
The Dart implementation of the PyNaCl APIs with the TweetNaCl cryptographic library
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add pinenacl
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
pinenacl: ^0.2.0-nullsafety.4
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pinenacl/api.dart';
import 'package:pinenacl/crypto/blake2b.dart';
import 'package:pinenacl/crypto/hmac_sha512.dart';
import 'package:pinenacl/crypto/poly1305.dart';
import 'package:pinenacl/crypto/sha_256.dart';
import 'package:pinenacl/crypto/tweetnacl.dart';
import 'package:pinenacl/crypto/tweetnacl_ext.dart';
import 'package:pinenacl/encoding.dart';
import 'package:pinenacl/hashing.dart';
import 'package:pinenacl/public.dart';
import 'package:pinenacl/secret.dart';
import 'package:pinenacl/signing.dart';
import 'package:pinenacl/utils.dart';