PoopCrypt 1.0.0

dotnet add package PoopCrypt --version 1.0.0
NuGet\Install-Package PoopCrypt -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="PoopCrypt" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PoopCrypt --version 1.0.0
#r "nuget: PoopCrypt, 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.
// Install PoopCrypt as a Cake Addin
#addin nuget:?package=PoopCrypt&version=1.0.0

// Install PoopCrypt as a Cake Tool
#tool nuget:?package=PoopCrypt&version=1.0.0

PoopCrypt

Very bad custom encoder and decoder

Features

  • Can use your byte encryption tricks
  • Turns classes and structures into a sequence of bytes and encrypts them
  • Decodes bytes into classes/structs very quickly
  • Slowly turns classes/structs into bytes, so you can insert your ad or save animation ^.^
  • Supports some built-in C# types
  • Has built-in stupid-coded byte encoders

Usage example

    var crypter = new PoorCrypt.Crypter(); // create a new Cryptor instance
    
    var me = new Person { Name = "Andrey", IQ = 0 }; // sample
    byte[] meAsBytes = crypter.Encode(me); // encrypt "me" into bytes
    Person meFromBytes = crypter.Decode<Person>(meAsBytes); // decrypt "me" from bytes

    public struct Person {
        [PoorCrypt.EncryptMe] public string Name;
        [PoorCrypt.EncryptMe] public int IQ;
    }

Some problems and their solution

  • List, Hashset and similar types are not supported because I'm dumb to figure out how to combine them. However, you can add your own translator of classes / structures to bytes and vice versa.
    class MaybeYourListCrypter : PoopCrypt.ITypeCrypter {
        public object Decrypt(byte[] data, ref int jump) {
            // your code
        }
        public byte[] Encrypt(object target) {
            // your code
        }
    }
  • For classes that have only primitive types inside, you can create an autoclass
    var example = new Crypter();
    example.GenerateAutoTypeCrypterFor<Bar>(true);
    byte[] bytes = example.Encrypt(someFoo);

    public struct Foo {
        public Bar bar;
    }

    public struct Foo {
        public Bar bar;
    }
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.0.0 167 8/20/2022