P
P
pokep42020-04-30 04:00:05
C++ / C#
pokep4, 2020-04-30 04:00:05

Why doesn't decryption work?

var decodedData = System.Security.Cryptography.ProtectedData.Unprotect(encryptedData, null, System.Security.Cryptography.DataProtectionScope.CurrentUser);

This line produces an error:
An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in System.Security.dll
Additional information: Параметр задан неверно.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-04-30
@pokep4

Try the example code. Perhaps you added some parameter when encrypting.
https://docs.microsoft.com/ru-ru/dotnet/api/system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question