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