More .NET components
// 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...
Security library for C# and VB.NET developers. Provides XTS-AES encryption wrapper stream, making it easy to add strong encryption capabilities to existing applications.
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, SignedData and EnvelopedData, a standard format for electronic signature and encryption of binary data using X509 certificates.

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:

  • 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)

Supported platforms

  • .NET Framework
    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 2008, 2010, 2012, 2013, 2015, 2017
  • .NET Compact Framework
    2.0, 3.5, 3.9 on Windows Mobile, Windows CE, Pocket PC, Windows Embedded Compact 2013; Visual Studio 2008, 2012, 2013
  • Mono
    3.x, 4.x on Linux and Apple macOS (OS X)
  • Xamarin.iOS
    Xamarin.iOS 8.6 or later; Xamarin Studio
  • Xamarin.Android
    Xamarin.Android 4 or later; Xamarin Studio

Supports Visual Studio 2008, 2010, 2012, 2013, 2015 and 2017.

Experimental support for Universal Windows Platform (Windows 10, Windows 10 Mobile, Windows 10 IoT).

Experimental support for Xamarin.Mac platform (assemblies are suitable for Xamarin.Mac Mobile and Xamarin.Mac .NET 4.5 Framework projects).

Learn more about supported standards and platforms.