I want to encrypt data in C++ based application, store it in file, and then decrypt it in other C# application. Could I use corresponding DPAPI parts?
Is it possible to protect data in C++ application using CryptProtectData()
, write it into file, and later read this file from other C# based application and decrypt using ProtectedData
Unprotect()
method?
Is there are a better way to share data between C++ and C# application in secure for usual user (not absolutely secure sure) way.