RC4 class

A simple RC4 encryptor.

To use the class, just create an instance of it, and then call methods such as RC4.encodeBytes, RC4.decodeBytes and so on.

Constructors

RC4(String key)
Creates a new instance by passing a given key.
RC4.fromBytes(List<int> key)
Creates a new instance by passing a given key.

Properties

hashCode int
The hash code for this object.
no setterinherited
key List<int>
The key.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decodeBytes(List<int> bytes, [bool allowMalformed = false]) String
Decodes bytes via RC4 encryption.
decodeString(String message, [bool encodedBase64 = true, dynamic allowMalformed = false]) String
Decodes a string into the original one via RC4 encryption.
encodeBytes(List<int> bytes) List<int>
Encodes bytes via RC4 encryption.
encodeString(String message, [bool encodeBase64 = true]) String
Encodes a string into another string via RC4 encryption.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited