Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
425 views
in Technique[技术] by (71.8m points)

c# - How to Upgrade System.Security.Cryptography assembly version to point to 5.0 from 4.0 in.net framework


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Sadly AesGcm is only for .NET Core >= 3.0 or .NET 5.0 (that in truth is .NET Core 5.0, a totally different beast from .NET Framework 4.x).

You can't import the single 5.0 System.Security.Cryptography.Algorithms.

If you want you can try to convert it from source code, or you can use BouncyCastle or similar libraries.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...