| 94 | } |
| 95 | |
| 96 | void UserDefault::setEncryptEnabled(bool enabled, cxx17::string_view key, cxx17::string_view iv) |
| 97 | { |
| 98 | _encryptEnabled = enabled; |
| 99 | if (_encryptEnabled) |
| 100 | { |
| 101 | ud_setkey(_key, key); |
| 102 | ud_setkey(_iv, iv); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | void UserDefault::encrypt(std::string& inout, int enc) |
| 107 | { |
nothing calls this directly
no test coverage detected