pub repository
mirror.p-hatan.ircipher
0.5.1A Dart library implementing cryptographic algorithms.
Readme
cipher
A Dart library for encryption and decryption. As of today, most of the classes are ports of Bouncy Castle from Java to Dart. The porting is almost always direct except for some classes that had been added to ease the use of low level data.
To make sure nothing fails, tests and benchmarks for every algorithm are provided. The expected results are taken from the Bouncy Castle Java version and also from standards, and matched against the results got from cipher.
As of the last release, the following algorithms are implemented:
Block ciphers:
- AES (fast version)
Stream ciphers:
- Salsa 20
Block cipher modes of operation:
- SIC (a.k.a. CTR)
- CBC
Paddings:
- PKCS7
Digests:
- RIPEMD-160
- SHA-1
- SHA-256
MACs:
- HMAC
Signatures:
- ECDSA
Password based key derivators:
- PBKDF2
- scrypt
Asymmetric key generators:
- ECDSA
Entropy sources (true RNGs):
- URL based (can be used, for example, with random.org)
- File based (can be used, for example, with /dev/random)
Secure PRNGs:
- Based on block cipher in CTR mode
- Based on block cipher in CTR mode with auto reseed (for forward security)
Changelog
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add cipherpubspec.yaml
name: cipher
author: Iván Zaera Avellón <izaera@gmail.com>
version: 0.5.1
homepage: http://izaera.github.io/cipher/
description: A Dart library implementing cryptographic algorithms.
documentation: http://izaera.github.io/cipher/api/
environment:
sdk: '>=0.8.10+6 <2.0.0'
dependencies:
bignum: 0.0.4
fixnum: '>=0.9.0 <0.10.0'
dev_dependencies:
unittest: '>=0.9.0 <0.10.0'
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.0 | 2013-10-10T20:29:20.274380Z | Download | f6af25b92473affd2738b9a839bac51c25af8e58aba3272606e59acc8b1c08fa |
| 0.0.1 | 2013-10-10T20:30:02.259650Z | Download | f881377258b63164f933b49063c0ef6f9a36df39c022a66dc33c5c8c342bfaae |
| 0.0.2 | 2013-10-11T20:21:29.455960Z | Download | 128f01bbf02571b6e98e1b882a7c0cf4219313b341922f7063b4820cc0334cb3 |
| 0.1.0 | 2013-10-12T20:31:03.414160Z | Download | 482d96de1e4b5c39f7920a778bd05e4e86be06b10efc96bb62cd5de8ce11d6b0 |
| 0.2.0 | 2013-10-13T17:43:03.442680Z | Download | 4e0d607087e7b01141624e3d5b5d8f8a2fa9b826f25d2bd7d72819acc17f0d8e |
| 0.3.0 | 2013-11-01T18:10:29.850690Z | Download | 43e12a855e0aa841d95066d2b3a50da73d1f9a196ff32507241e895b5261e354 |
| 0.3.1 | 2013-11-11T20:57:32.833720Z | Download | b282572534a195529cb98011818acaf64a2d3434e9e6130fc6f75ede9ba9c033 |
| 0.4.0 | 2013-11-18T21:20:54.924380Z | Download | b2ff9d2f8834bcad577595ce92a7c09788cc14950045865e6c772da87eedbdb1 |
| 0.5.0 | 2014-01-15T15:59:52.081150Z | Download | b96e73fcd607853d539af04b3e6a94ab086f1d076af205b622052c0203868bed |
| 0.5.1 | 2014-01-20T07:58:41.859370Z | Download | 1ba9f432cd2869d434af8be590bba36305e991e5c789199ccfddb45e95595077 |
| 0.6.0 | 2014-02-24T20:58:02.563890Z | Download | 5f3977621bc6264f8ec8e5ff6bce5d7a046fbf5fedd90f5d63f5bbd0e1bea308 |
| 0.7.0 | 2014-03-22T18:00:24.822430Z | Download | 1cbd576ab91fafb4fbddbf67acdd10fa609d9536a47f5a01b5c2ecda8c058826 |
| 0.7.1 | 2014-05-11T18:49:34.808020Z | Download | fb9271f1e22c6e3191edfecf23a15c0317a110223899d8f07e76da77ca5a718f |
Dependencies
bignum "0.0.4"
fixnum "\u003e=0.9.0 \u003c0.10.0"