simple_rc4 0.3.0 copy "simple_rc4: ^0.3.0" to clipboard
simple_rc4: ^0.3.0 copied to clipboard

Yet another RC4 cryptor that encodes/decodes bytes and UTF8 strings.

simple_rc4 #

Actions Status

RC4 cryptor that encodes/decodes bytes and UTF8 strings.

Credit to https://github.com/zonble the original creator of this library.

The only difference: this handels mal formed list in decoding, by adding a default parameter {bool? allowMalformed} to the decoding function that allows mal formed List to prevent FormatException: Unexpected extension byte...

Usage #

The package provides a simple class, [RC4], just create an instance of it with your key, and then pass your data that you want to do encoding/decoding.

A simple usage example:

import 'package:simple_rc4/simple_rc4.dart';

main() {
  RC4 rc4 = new RC4('zonble');
  String input = '中文';
  var bytes = rc4.encodeBytes(utf8.encode(input));
  print(bytes);
}

That's all! Enjoy!

1
likes
140
pub points
80%
popularity

Publisher

verified publisherzonble.net

Yet another RC4 cryptor that encodes/decodes bytes and UTF8 strings.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on simple_rc4