d method

String d(
  1. List<int> chars
)

Decrypts the given chars by XOR-ing them with the secret s.

Keep in mind that this is not a secure encryption method. It only makes static analysis of the compiled binary harder.

You should enable Flutter obfuscation for additional security.

Implementation

String d(List<int> chars) {
  for (int i = 0; i < chars.length; i++) {
    chars[i] = chars[i] ^ s;
  }
  return String.fromCharCodes(chars);
}