cipher 0.0.2
cipher: ^0.0.2 copied to clipboard
A Dart library for encryption/decryption mainly based on Bouncy Castle Java library. Most of the classes are ports of Bouncy Castle from Java to Dart. The porting is almost always direct except for so [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add cipher
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
cipher: ^0.0.2
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:cipher/api.dart';
import 'package:cipher/engines/aes_fast.dart';
import 'package:cipher/engines/salsa20.dart';
import 'package:cipher/modes/sic.dart';
import 'package:cipher/params/key_parameter.dart';
import 'package:cipher/params/parameters_with_iv.dart';