StreamCryptor 0.5.1

You can use StreamCryptor to encrypt and decrypt files without size limit and the need to load every file completely into memory.

StreamCryptor uses FileStream to read and write files in chunks, there is also an asynchronous implementations for progress reporting available.

Files are encrypted into SCCEF (StreamCryptor Chunked Encrypted File) format.

Every file contains an EncryptedFileHeader some EncryptedFileChunks and an EncryptedFileFooter to prevent file manipulation.

The file serialization is realised with Google`s protobuf, it has a small overhead and offers an automatic length prefix for all file parts.

All cryptographic operations are performed via libsodium-net (and thus libsodium).

For more details and examples visit the github project site.

Install-Package StreamCryptor -Version 0.5.1
dotnet add package StreamCryptor --version 0.5.1
<PackageReference Include="StreamCryptor" Version="0.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StreamCryptor --version 0.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

0.5.1
* Updated libsodium-net to 10.0.0 (libsodium v.1.0.11)
* Added support for encoding a stream directly without using a file
0.5.0
* Updated libsodium-net to 0.9.0 (libsodium v1.0.7)
0.5.0-beta2
* Changed file name padding to PKCS7
0.5.0-beta1
* GetRandomFileName now uses also libsodium
* Added cancellation support to the async methods
* Updated libsodium-net to 0.9.0-beta3 (libsodium v1.0.3)
0.4.0
* SCCEF Protocol Version 2 (not backward compatible)
* Updated libsodium-net to 0.7.0 (libsodium v.1.0.2)
0.3.2-beta2
* Updated libsodium to 0.7.0-beta2
0.3.2
* Updated libsodium to 0.7.0-beta1 (thread-safe version)
* Added overloaded method to decrypt into memory (experimental)
0.3.1
* Added method to decrypt into memory (experimental)
0.3.0
* Updated libsodium to 0.6.0 (stable)
0.2.5
* Updated libsodium to 0.6.0-beta3
* Fixes PInvokeStackImbalance
0.2.4
* Code improvements
* Updated libsodium to 0.6.0-beta2
0.2.2
* Changed Namespace to Cryptor
* Code improvements
0.2.1
* Updated libsodium to 0.6.0-beta1
0.2
* Added overloads for asynchronous methods
* Changed internal use of synchronous methods
0.1.18
* Added asynchronous methods (beta)
* Changed TargetFrameworkVersion from v4.0 to v4.5
0.1.17
* no release, just more tests
0.1.16
* There was a bug on decrypting files with external private keys
0.1.15
* Changed TargetFrameworkVersion from v4.5 to v4.0

Version History

Version Downloads Last updated
0.5.1 663 1/7/2017
0.5.0 528 12/10/2015
0.5.0-beta2 357 8/16/2015
0.5.0-beta1 313 7/24/2015
0.4.0 387 5/5/2015
0.3.2-beta2 291 1/2/2015
0.3.2-beta 308 12/1/2014
0.3.1-beta 829 11/2/2014
0.3.0 363 10/9/2014
0.2.5-beta 297 9/30/2014
0.2.4-beta 306 9/28/2014
0.2.2-beta 313 9/24/2014
0.2.1-beta 291 9/22/2014
0.2.0 360 9/17/2014
0.1.18 298 9/16/2014
0.1.16 320 9/15/2014
0.1.15 358 9/15/2014
0.1.14 351 9/15/2014