Rebex Security
XTS-AES and other handy security classes for .NET
Download 30-day free trial Buy from $199More .NET libraries
-
Rebex SFTP
.NET SFTP client
-
Rebex SSH Shell
.NET SSH Shell
-
Rebex Total Pack
All Rebex .NET libraries together
// create an encryption/decryption object
var encryptor = new FileEncryption();
// specify a password
encryptor.SetPassword("secret password");
// decrypt a file
encryptor.Decrypt("log.xts", "log.txt");
Show me more code...
Also includes simple file encryption/decryption API, essential PKCS #7 objects and a collection of useful cryptographic algorithms.
Why Rebex Security?
Simple file encryption
FileEncryption objects provides a very simple file and stream encryption API that supports:
XTS-AES encryption stream
XtsStream object is a transparent wrapper stream that adds encryption/decryption support to any .NET stream object, which makes it simple to integrate it with existing applications.
XtsStream utilizes XTS-AES, a standard sector-based data encryption method defined by IEEE P1619. This makes the stream seekable and capable of both read and write operations.
PKCS #7 (CMS) API with PSS and OAEP support
Rebex Security includes an API for two essential PKCS #7 (CMS) objects, SignedData and EnvelopedData, a standard format for electronic signature and encryption of binary data using X.509 certificates.
Rebex PKCS #7 (CMS) API supports RSASSA-PSS (RSA signatures with PSS padding) and RSAES-OAEP (RSA encryption with OAEP padding) on all platforms, including .NET 2.0 and .NET Compact Framework.
X.509 Certificate API
Rebex Security includes a platform-independent API for
X.509 certificates and related structures and operations.
This makes it possible to issue a self-signed certificate or create a custom certification authority for testing.
Converting certificates and private keys from one format to another is simple as well.
The Certificate class supports signing/validation and encryption/decryption functionality as wel.
Cryptographic algorithms
Rebex Security also includes several symmetric key algorithms such as Twofish, Blowfish or ArcFour that are not provided by .NET Framework, legacy hash algorithms and managed implementation of RSA, DSA and Diffie-Hellman. The following objects are available:
- RSA digital signature algorithm
- DSA digital signature algorithm (legacy)
- ECDSA digital signature algorithm
- Ed25519 digital signature algorithm
- ML-DSA post-quantum digital signature algorithm
- Diffie-Hellman key exchange algorithm
- Twofish symmetric cipher (legacy)
- Blowfish symmetric cipher (legacy)
- ArcTwo symmetric cipher (legacy)
- ArcFour symmetric cipher (legacy)
- MD4 hash algorithm (legacy)
- MD5 hash algorithm (legacy)
Note: ECDSA requires a plugin on very old systems. ML-DSA requires a plugin unless running on Windows 11 25H2 or up-to-date Linux with .NET 10 or later.
Platforms
.NET
.NET Framework
Xamarin.iOS
Xamarin.Android
Learn more about supported standards and platforms.
Legacy platforms
(not included in standard product packages - see more)
.NET Compact Framework
.NET Framework
Featured samples
-
WinForm encryption tool
This WinForm application enables encryption and decryption of files. -
Encryption tool (.NET Compact Framework)
This application enables encryption and decryption of files on devices supported by .NET Compact Framework.