DidiSoft OpenSSL Library for .NET provides API methods compatible with the popular OpenSSL cryptographic product. This page is the starting page for learning how to performs the most common operations provided by the library.
The most common OpenSSL routines are available in the OpenSslUtil class.
Additional OpenSSL cryptography methods can be accessed via dedicated classes.
Setup
Ciphers and Hashes
- Base64 encoding
- Symmetric cipher encryption (openssl enc) (AES, Blowfish, Cast-5, DES, Triple DES, IDEA, RC-2, RC-4, RC-5, GOST )
- Digest (openssl dgst)
Keys
- Public and private keys
- PKCS#12 key storage (.p12, .pfx)
RSA operations
- RSA keys
- RSA cryptography (openssl rsautl)
EdDsa signatures
CMS/PKCS#7 cryptography
- Encrypted Enveloped Data (openssl cms)
- Signed Data
S/MIME
- S/MIME encrypting and decrypting (openssl smime)
TLS Client
X.509 Certificates
OpenSslUtil class
Symmetric key | Encrypt | Decrypt | ||
Asymmetric key | PublicEncrypt | PrivateDecrypt | Sign | Verify |
GenerateKeyPair | GetPublicKey | GetPrivateKey | ||
CMS/PKCS7 | CmsEncrypt | CmsDecrypt | CmsSign | CmsVerify |
SMIME | SmimeEncrypt | SmimeDecrypt | SmimeSign | SmimeVerify |
X.509 | create CSR | CSR sign to Certificate | X509Read | CheckPrivateKey |
PKCS#12/.pfx | Pkcs12Create | Pkcs12Read | List | Pkcs12Save |