Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hacker1024/blowfish_ecb.dart
A Blowfish ECB codec implementation in pure Dart.
https://github.com/hacker1024/blowfish_ecb.dart
algorithm blowfish blowfish-algorithm dart dart-algorithms dart-package dartlang
Last synced: 26 days ago
JSON representation
A Blowfish ECB codec implementation in pure Dart.
- Host: GitHub
- URL: https://github.com/hacker1024/blowfish_ecb.dart
- Owner: hacker1024
- License: gpl-3.0
- Created: 2021-01-17T07:58:13.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-08T05:37:27.000Z (over 3 years ago)
- Last Synced: 2024-10-09T15:33:16.606Z (about 1 month ago)
- Topics: algorithm, blowfish, blowfish-algorithm, dart, dart-algorithms, dart-package, dartlang
- Language: Dart
- Homepage: https://pub.dev/packages/blowfish_ecb
- Size: 60.5 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Blowfish ECB for Dart
A pure Dart [Codec](https://api.dart.dev/stable/2.10.4/dart-convert/Codec-class.html)
implementation for the [Blowfish ECB](https://www.schneier.com/academic/blowfish/)
encryption algorithm.## Usage
The `BlowfishECB` class fully implements [Codec](https://api.dart.dev/stable/2.10.4/dart-convert/Codec-class.html).The following simple usage is adapted from the included example project:
```dart
// Instantiate the codec with a key.
final blowfish = BlowfishECB(key);// Encrypt the input data.
final encryptedData = blowfish.encode(message);// Decrypt the encrypted data.
final decryptedData = blowfish.decode(encryptedData);
```## License
Everything is licenced under the GNU Lesser General Public License v3 or above.
See [`LICENCE`](LICENSE) and [`LICENCE.LESSER`](LICENSE.LESSER) for more
information.Essentially, if this package is modified in your project, the modified package
sources must be released.## Inspiration
The algorithm implementation was ported over from the
[Versile Python implementation](https://github.com/versiledev/versile-python/blob/master/versile/crypto/algorithm/blowfish.py).