LiteByteCapsule 1.1.5
See the version list below for details.
dotnet add package LiteByteCapsule --version 1.1.5
NuGet\Install-Package LiteByteCapsule -Version 1.1.5
<PackageReference Include="LiteByteCapsule" Version="1.1.5" />
paket add LiteByteCapsule --version 1.1.5
#r "nuget: LiteByteCapsule, 1.1.5"
// 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 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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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. |
-
.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.
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.