Cipher class

Cipher using XOR for encryption & decryption

Constructors

Cipher({String? secretKey})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
xorDecode(String content, {String? secretKey}) String
string xor decryption
xorDecodeBytes(List<int> bytes, {String? secretKey}) List<int>
bytes xor decryption
xorDecodeBytesToString(List<int> bytes, {String? secretKey}) String
string to bytes xor decryption
xorDecodeStringToBytes(String content, {String? secretKey}) List<int>
bytes to string xor decryption
xorEncode(String content, {String? secretKey}) String
string xor encryption
xorEncodeBytes(List<int> bytes, {String? secretKey}) List<int>
bytes xor encryption
xorEncodeBytesToString(List<int> bytes, {String? secretKey}) String
bytes to string xor encryption
xorEncodeStringToBytes(String content, {String? secretKey}) List<int>
string to bytes xor encryption

Operators

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