Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# Blowfish ECB for Dart


pub: blowfish_ecb
License: AGPL
style: lint

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).