Is it safe to use Rijndael.Create () instead of the new RijndaelManaged ()

I read some on this topic, but I'm still not 100% comfortable with the answers I see.

When you create a cryptographic algorithm using Rijndael.Create(), you get an object of the type RijndaelManaged- between this and the call new RijndaelManaged()(or new RijndaelManaged()for you VB people it seems there is no difference) :)

From what I read, there is a method Rijndael.Create(), so you don’t have to worry about a specific implementation if it changes in a future version. But my question is: suppose this is true, and .NET 5.0 returns a different implementation. Is there any guarantee that elements encrypted with RijndaelManaged can be decrypted without problems using SomeFutureRijndaelManaged?

I cannot imagine that they would be incompatible, but I just want to confirm this.

thank

+3
source share
1 answer

Rijndael.Create , . , Crypto API OID, RijndaelManaged. , Windows 2000/XP/Vista/Windows. , Create, RijndaelManaged . , / .

" " - . .NET 5.0. , , , . <supportedRuntime /> .config .NET-, , .

+7

Source: https://habr.com/ru/post/1785100/


All Articles