ByteFlow 1.0.0

dotnet add package ByteFlow --version 1.0.0
                    
NuGet\Install-Package ByteFlow -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ByteFlow" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ByteFlow" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ByteFlow" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ByteFlow --version 1.0.0
                    
#r "nuget: ByteFlow, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ByteFlow@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ByteFlow&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ByteFlow&version=1.0.0
                    
Install as a Cake Tool

ByteFlow

ByteFlow is a fluent, chainable .NET library for sequential byte array transformations. It provides an elegant, type-safe API for applying compression, encryption, hashing, and custom processing operations to binary data in a pipeline fashion.

Quick Start

using ByteFlow;

// Create a chain from a file, compress, encrypt, and compute hash
byte[] result = ByteFlow
    .FromFile("data.bin")
    .CompressWith<GZipCompressor>()
    .EncryptWith<AesGcmEncryptor>(encryptionKey)
    .HashWith<SHA256Hasher>()
    .Build();

// Or from a string
byte[] processed = ByteFlow
    .FromString("Hello, World!")
    .EncodeToBase64()
    .Build();

Core

ByteFlow Static Class

Factory methods for creating ByteFlowChain instances from various sources:

  • From(byte[]) - Raw byte array
  • FromFile(string) / FromFileAsync(string) - File contents
  • FromStream(Stream) - Stream data
  • FromString(string, Encoding?) - Text with optional encoding

ByteFlowChain Class

Represents a chain of transformations that can be applied sequentially. Each transformation returns the same instance for fluent chaining.

Available Transformations

Compression/Decompression

Supports multiple algorithms via the ICompressor interface:

  • BrotliCompressor - Brotli compression
  • DeflateCompressor - DEFLATE compression
  • GZipCompressor - GZip compression
  • ZLibCompressor - ZLib compression
.CompressWith<GZipCompressor>(CompressionLevel.Optimal)
.DecompressWith<GZipCompressor>()

Encryption/Decryption

Authenticated encryption via the IEncryptor interface:

  • AesCcmEncryptor - AES-CCM mode
  • AesGcmEncryptor - AES-GCM mode
  • ChaCha20Poly1305Encryptor - ChaCha20-Poly1305
.EncryptWith<AesGcmEncryptor>(key, associatedData)
.DecryptWith<AesGcmEncryptor>(key, associatedData)

Hashing

Cryptographic hashing via the IHasher interface:

  • SHA256HasherSHA384HasherSHA512Hasher
  • SHA3_256HasherSHA3_384HasherSHA3_512Hasher
  • Blake2bHasherBlake2sHasherBlake3Hasher
.HashWith<SHA256Hasher>()

Encoding

  • EncodeToBase64() - Convert bytes to Base64 string (as UTF-8 bytes)
  • DecodeFromBase64() - Decode Base64 string back to bytes

Validation & Custom Processing

  • Validate(Func<byte[], bool>) - Validate data during processing
  • AddProcessor(Func<byte[], byte[]>) - Add custom transformation
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 28 1/20/2026