ByteFlow 1.0.0
dotnet add package ByteFlow --version 1.0.0
NuGet\Install-Package ByteFlow -Version 1.0.0
<PackageReference Include="ByteFlow" Version="1.0.0" />
<PackageVersion Include="ByteFlow" Version="1.0.0" />
<PackageReference Include="ByteFlow" />
paket add ByteFlow --version 1.0.0
#r "nuget: ByteFlow, 1.0.0"
#:package ByteFlow@1.0.0
#addin nuget:?package=ByteFlow&version=1.0.0
#tool nuget:?package=ByteFlow&version=1.0.0
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 arrayFromFile(string)/FromFileAsync(string)- File contentsFromStream(Stream)- Stream dataFromString(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 compressionDeflateCompressor- DEFLATE compressionGZipCompressor- GZip compressionZLibCompressor- ZLib compression
.CompressWith<GZipCompressor>(CompressionLevel.Optimal)
.DecompressWith<GZipCompressor>()
Encryption/Decryption
Authenticated encryption via the IEncryptor interface:
AesCcmEncryptor- AES-CCM modeAesGcmEncryptor- AES-GCM modeChaCha20Poly1305Encryptor- ChaCha20-Poly1305
.EncryptWith<AesGcmEncryptor>(key, associatedData)
.DecryptWith<AesGcmEncryptor>(key, associatedData)
Hashing
Cryptographic hashing via the IHasher interface:
SHA256Hasher,SHA384Hasher,SHA512HasherSHA3_256Hasher,SHA3_384Hasher,SHA3_512HasherBlake2bHasher,Blake2sHasher,Blake3Hasher
.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 processingAddProcessor(Func<byte[], byte[]>)- Add custom transformation
| Product | Versions 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. |
-
net10.0
- Blake3 (>= 2.0.0)
- SauceControl.Blake2Fast (>= 2.0.0)
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 |