| 57 | const QString qs_showCaptured = "showCaptured"; |
| 58 | |
| 59 | QString shuffle(const QString& source) |
| 60 | { |
| 61 | if (source.isEmpty()) { |
| 62 | return source; |
| 63 | } |
| 64 | char encKeys[] = {14, 26, 99, 43}; |
| 65 | std::string result = source.toStdString(); |
| 66 | for (size_t i = 0, end = result.size(); i < end; ++i) { |
| 67 | result[i] = result[i] ^ encKeys[i % sizeof(encKeys)]; |
| 68 | } |
| 69 | return QString::fromUtf8(result.data()); |
| 70 | } |
| 71 | |
| 72 | QStringList packSubstitutions(const Substitutions& source) |
| 73 | { |