xorEncodeBytes method
bytes xor encryption
Implementation
List<int> xorEncodeBytes(List<int> bytes, {String? key}) {
this.key = key ?? this.key;
if (this.key != null && this.key!.isNotEmpty) {
return _xor(bytes, utf8.encode(this.key!));
} else {
return _encrypt(bytes);
}
}