// create an encryption/decryption object
var encryptor = new FileEncryption();
// specify a password
// decrypt a file
Show me more code...
Security library for C# and VB.NET developers. Provides XTS-AES encryption
wrapper stream, making it easy to add strong encryption capabilities to existing
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:
- Encryption and decryption of files
- Encryption and decryption of streams
- Supports AES, 3DES and Twofish in CBC mode
- Supports XTS-AES (defined by IEEE P1619)
- Password-based protection
- PBKDF2 key derivation
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) objects
Rebex Security includes an API for two essential PKCS #7 (CMS) objects,
a standard format for electronic signature and encryption of binary data using X509 certificates.
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:
- Twofish symmetric cipher
- Blowfish symmetric cipher
- RC2(r)* symmetric cipher
- ArcFour symmetric cipher (compatible with RC4)
- MD4 legacy hash algorithm
- MD5 legacy hash algorithm
- RSA public-key cryptography
- DSA public-key cryptography
- Diffie-Hellman key exchange algorithm
(* RC2 is a registered trademark of RSA Security LLC)
2.0, 3.0, 3.5. 4.0, 4.5.x, 4.6.x; both 32-bit and 64-bit editions on Windows XP or later; Visual Studio 2005, 2008, 2010, 2012, 2013, 2015
.NET Compact Framework
2.0, 3.5, 3.9 on Windows Mobile, Windows CE, Pocket PC, PDAs and Smartphones, Windows Embedded Compact 2013; Visual Studio 2005, 2008, 2012, 2013
2.10, 3.x, 4.x on Linux and Apple's OS X
Xamarin.iOS 8.6 or later; Xamarin Studio
Xamarin.Android 4 or later; Xamarin Studio
Supports Visual Studio 2005, 2008, 2010, 2012, 2013 and 2015.
Learn more about supported standards and platforms.