blowfish_cbc 0.1.1 blowfish_cbc: ^0.1.1 copied to clipboard
A Blowfish CBC codec implementation in pure Dart.
Blowfish CBC for Flutter/Dart #
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.