| 7306 | |
| 7307 | |
| 7308 | String ScriptingApi::FileSystem::decryptWithRSA(const String& dataToDecrypt, const String& publicKey) |
| 7309 | { |
| 7310 | BigInteger val; |
| 7311 | val.parseString (dataToDecrypt, 16); |
| 7312 | |
| 7313 | RSAKey key (publicKey); |
| 7314 | |
| 7315 | if(key.isValid()) |
| 7316 | { |
| 7317 | key.applyToValue (val); |
| 7318 | |
| 7319 | auto mb = val.toMemoryBlock(); |
| 7320 | |
| 7321 | if (CharPointer_UTF8::isValidString (static_cast<const char*> (mb.getData()), (int) mb.getSize())) |
| 7322 | return mb.toString(); |
| 7323 | } |
| 7324 | |
| 7325 | return {}; |
| 7326 | } |
| 7327 | |
| 7328 | void ScriptingApi::FileSystem::loadExampleAssets() |
| 7329 | { |
nothing calls this directly
no test coverage detected