xorDecode method
string xor decryption
Implementation
String xorDecode(String content, {String? secretKey}) {
this.secretKey = secretKey ?? this.secretKey;
if (this.secretKey != null && this.secretKey!.isNotEmpty) {
return utf8
.decode(_xor(base64Decode(content), utf8.encode(this.secretKey!)));
} else {
return utf8.decode(_decrypt(base64Decode(content)));
}
}