pc_steelcrypt 1.1.1 pc_steelcrypt: ^1.1.1 copied to clipboard
A Dart library implementing cryptographic algorithms and primitives, modeled on the BouncyCastle library.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add pc_steelcrypt
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
pc_steelcrypt: ^1.1.1
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:pc_steelcrypt/adapters/stream_cipher_as_block_cipher.dart';
import 'package:pc_steelcrypt/api.dart';
import 'package:pc_steelcrypt/asymmetric/api.dart';
import 'package:pc_steelcrypt/asymmetric/oaep.dart';
import 'package:pc_steelcrypt/asymmetric/pkcs1.dart';
import 'package:pc_steelcrypt/asymmetric/rsa.dart';
import 'package:pc_steelcrypt/block/aes_fast.dart';
import 'package:pc_steelcrypt/block/modes/cbc.dart';
import 'package:pc_steelcrypt/block/modes/cfb.dart';
import 'package:pc_steelcrypt/block/modes/ctr.dart';
import 'package:pc_steelcrypt/block/modes/ecb.dart';
import 'package:pc_steelcrypt/block/modes/gcm.dart';
import 'package:pc_steelcrypt/block/modes/gctr.dart';
import 'package:pc_steelcrypt/block/modes/ofb.dart';
import 'package:pc_steelcrypt/block/modes/sic.dart';
import 'package:pc_steelcrypt/digests/blake2b.dart';
import 'package:pc_steelcrypt/digests/keccak.dart';
import 'package:pc_steelcrypt/digests/md2.dart';
import 'package:pc_steelcrypt/digests/md4.dart';
import 'package:pc_steelcrypt/digests/md5.dart';
import 'package:pc_steelcrypt/digests/ripemd128.dart';
import 'package:pc_steelcrypt/digests/ripemd160.dart';
import 'package:pc_steelcrypt/digests/ripemd256.dart';
import 'package:pc_steelcrypt/digests/ripemd320.dart';
import 'package:pc_steelcrypt/digests/sha1.dart';
import 'package:pc_steelcrypt/digests/sha224.dart';
import 'package:pc_steelcrypt/digests/sha256.dart';
import 'package:pc_steelcrypt/digests/sha3.dart';
import 'package:pc_steelcrypt/digests/sha384.dart';
import 'package:pc_steelcrypt/digests/sha512.dart';
import 'package:pc_steelcrypt/digests/sha512t.dart';
import 'package:pc_steelcrypt/digests/tiger.dart';
import 'package:pc_steelcrypt/digests/whirlpool.dart';
import 'package:pc_steelcrypt/ecc/api.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp160r1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp160t1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp192r1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp192t1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp224r1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp224t1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp256r1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp256t1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp320r1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp320t1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp384r1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp384t1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp512r1.dart';
import 'package:pc_steelcrypt/ecc/curves/brainpoolp512t1.dart';
import 'package:pc_steelcrypt/ecc/curves/gostr3410_2001_cryptopro_a.dart';
import 'package:pc_steelcrypt/ecc/curves/gostr3410_2001_cryptopro_b.dart';
import 'package:pc_steelcrypt/ecc/curves/gostr3410_2001_cryptopro_c.dart';
import 'package:pc_steelcrypt/ecc/curves/gostr3410_2001_cryptopro_xcha.dart';
import 'package:pc_steelcrypt/ecc/curves/gostr3410_2001_cryptopro_xchb.dart';
import 'package:pc_steelcrypt/ecc/curves/prime192v1.dart';
import 'package:pc_steelcrypt/ecc/curves/prime192v2.dart';
import 'package:pc_steelcrypt/ecc/curves/prime192v3.dart';
import 'package:pc_steelcrypt/ecc/curves/prime239v1.dart';
import 'package:pc_steelcrypt/ecc/curves/prime239v2.dart';
import 'package:pc_steelcrypt/ecc/curves/prime239v3.dart';
import 'package:pc_steelcrypt/ecc/curves/prime256v1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp112r1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp112r2.dart';
import 'package:pc_steelcrypt/ecc/curves/secp128r1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp128r2.dart';
import 'package:pc_steelcrypt/ecc/curves/secp160k1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp160r1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp160r2.dart';
import 'package:pc_steelcrypt/ecc/curves/secp192k1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp192r1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp224k1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp224r1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp256k1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp256r1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp384r1.dart';
import 'package:pc_steelcrypt/ecc/curves/secp521r1.dart';
import 'package:pc_steelcrypt/ecc/ecc_base.dart';
import 'package:pc_steelcrypt/ecc/ecc_fp.dart';
import 'package:pc_steelcrypt/export.dart';
import 'package:pc_steelcrypt/impl.dart';
import 'package:pc_steelcrypt/key_derivators/api.dart';
import 'package:pc_steelcrypt/key_derivators/hkdf.dart';
import 'package:pc_steelcrypt/key_derivators/pbkdf2.dart';
import 'package:pc_steelcrypt/key_derivators/scrypt.dart';
import 'package:pc_steelcrypt/key_generators/api.dart';
import 'package:pc_steelcrypt/key_generators/ec_key_generator.dart';
import 'package:pc_steelcrypt/key_generators/rsa_key_generator.dart';
import 'package:pc_steelcrypt/macs/cbc_block_cipher_mac.dart';
import 'package:pc_steelcrypt/macs/cmac.dart';
import 'package:pc_steelcrypt/macs/hmac.dart';
import 'package:pc_steelcrypt/macs/poly1305.dart';
import 'package:pc_steelcrypt/padded_block_cipher/padded_block_cipher_impl.dart';
import 'package:pc_steelcrypt/paddings/iso7816d4.dart';
import 'package:pc_steelcrypt/paddings/pkcs7.dart';
import 'package:pc_steelcrypt/pointycastle.dart';
import 'package:pc_steelcrypt/random/auto_seed_block_ctr_random.dart';
import 'package:pc_steelcrypt/random/block_ctr_random.dart';
import 'package:pc_steelcrypt/random/fortuna_random.dart';
import 'package:pc_steelcrypt/signers/ecdsa_signer.dart';
import 'package:pc_steelcrypt/signers/rsa_signer.dart';
import 'package:pc_steelcrypt/stream/chacha20.dart';
import 'package:pc_steelcrypt/stream/chacha20poly1305.dart';
import 'package:pc_steelcrypt/stream/chacha7539.dart';
import 'package:pc_steelcrypt/stream/ctr.dart';
import 'package:pc_steelcrypt/stream/salsa20.dart';
import 'package:pc_steelcrypt/stream/sic.dart';