LiteByteCapsule 1.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package LiteByteCapsule --version 1.1.5
NuGet\Install-Package LiteByteCapsule -Version 1.1.5
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="LiteByteCapsule" Version="1.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LiteByteCapsule --version 1.1.5
#r "nuget: LiteByteCapsule, 1.1.5"
#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.
// Install LiteByteCapsule as a Cake Addin
#addin nuget:?package=LiteByteCapsule&version=1.1.5

// Install LiteByteCapsule as a Cake Tool
#tool nuget:?package=LiteByteCapsule&version=1.1.5

LiteByteCapsule

Nuget Codacy Badge Maintainability Build Status Codecov CII Best Practices

NuGet Package: https://www.nuget.org/packages/LiteByteCapsule/

To be added later. For now, basic usage:

First create a stack of capsulation constants using CapsuleConstant class

Stack<CapsuleConstant> constants = new Stack<CapsuleConstant>();

Then push your capsulation constants as you desire

constants.Push(new CapsuleConstant(5, 1, true));
constants.Push(new CapsuleConstant(111, 0, false));
constants.Push(new CapsuleConstant(222, 2, true));
constants.Push(new CapsuleConstant(172, 0, true));
constants.Push(new CapsuleConstant(121, 1, false));
constants.Push(new CapsuleConstant(31, 2, false));
constants.Push(new CapsuleConstant(54, 3, false));

CapsuleConstant instances has these properties by order

new CapsuleConstant(byteValue,position,startFromTheHead);

Or create constant stack by random constants using:

Stack<CapsuleConstant> constants=CapsuleConstant.GenerateCapsulationConstants(amount);

This will create you a stack of constants which has random values. Since the positioning is dynamic, you won't have to worry about positions of constants in the capsule.

Create LiteByteCapsule instance, constants variable is a stack of CapsuleConstant instances

LiteByteCapsule lite=new LiteByteCapsule(constants);

Convert to syntax (capsulation)

byte[] capsule=lite.ConvertToSyntax(innerPackage);

Converts the given byte array to capsule using capsule constant stack passed to constructor of LiteByteCapsule.

Check syntax (decapsulation)

byte[] innerPackage=lite.CheckSyntax(capsule);

CheckSyntax returns null incase the capsule syntax doesn't match designated capsule constant sequence. Basically null return means imposter package.

Convert byte array to string

string arrayContent=lite.ConvertToString(capsule);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

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.1.6 635 7/31/2019
1.1.5 512 7/22/2019
1.1.0 523 7/19/2019
1.0.8 526 7/17/2019
1.0.7 523 7/17/2019
1.0.6 539 7/17/2019
1.0.5 510 7/17/2019
1.0.4 513 7/17/2019
1.0.3 519 7/16/2019
1.0.2 533 7/16/2019
1.0.1 511 7/16/2019
1.0.0 506 7/16/2019

Exception handlings has been incresed, exceptions are being thrown in certain cases in this vers.
Unit tests are completed successfully. Code coverage >95%
Check Github repo for code coverage status.


Implementation of random constant stack is ready for test.