RC4 class Null safety

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.
read-onlyinherited
key List<int>
The key.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

decodeBytes(List<int> bytes) String
Decodes bytes via RC4 encryption.
decodeString(String message, [bool encodedBase64 = true]) 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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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