Skip to content

A Blowfish CBC codec implementation in pure Dart.

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
LGPL-3.0
LICENSE.LESSER
Notifications You must be signed in to change notification settings

edrianolima/blowfish_cbc

Repository files navigation

Blowfish CBC for Flutter/Dart

pub: blowfish_cbc License: LGPL v3.0 style: lint

A pure Dart Codec implementation for the Blowfish CBC encryption algorithm.

Usage

The BlowfishCBC class fully implements Codec.

The following simple usage is adapted from the included example project:

const key = "Test@12345";
const message = 'Test@123';

final encrypted = BlowfishCBCUtil.encrypt(message, key);
final decrypted = BlowfishCBCUtil.decrypt(encrypted, key);

print('Encrypting "$message" with blowfish CBC base64.');
print('Encrypted: "$encrypted"');
print('Decrypting blowfish CBC base64 "$encrypted".');
print('Decrypted: "$decrypted"');

License

This project is licensed under the GNU Lesser General Public License v3.0 - see the LICENSE and LICENCE.LESSER file for details.

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 hacker1024 BlowfishECB implementation.

About

A Blowfish CBC codec implementation in pure Dart.

Resources

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
LGPL-3.0
LICENSE.LESSER

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages