Back to Dotnet

System.Security.Cryptography

src/libraries/System.Security.Cryptography/README.md

11.0.1003.1 KB
Original Source

System.Security.Cryptography

This assembly provides the core cryptographic support for .NET, including hashing (e.g. SHA256), symmetric-key message authentication (e.g. HMACSHA256), symmetric-key encryption (e.g. Aes), symmetric-key authenticated encryption (e.g. AesGcm), asymmetric (public/private key) cryptography (e.g. RSA, ECDsa, or ECDiffieHellman), and X.509 public-key certificates (X509Certificate2).

Documentation can be found at https://learn.microsoft.com/dotnet/api/system.security.cryptography and https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates

Contribution Bar

When contributing to this area, please consider:

  • We do not provide implementations for primitive cryptographic algorithms, and do not want to.
    • Some exceptions have been made in the past, but we do not anticipate any future exceptions.
  • We generally do not add API support for an algorithm unless it is supported by at least two of
    • Microsoft Windows (via CNG)
    • OpenSSL
    • Apple macOS (via CommonCrypto or CryptoKit)

See the Help Wanted issues.

Source

Deployment

The System.Security.Cryptography assembly is part of the shared framework, and ships with every new release of .NET.