4Stack 2.2.0

dotnet add package 4Stack --version 2.2.0
                    
NuGet\Install-Package 4Stack -Version 2.2.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="4Stack" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="4Stack" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="4Stack" />
                    
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 4Stack --version 2.2.0
                    
#r "nuget: 4Stack, 2.2.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 4Stack@2.2.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=4Stack&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=4Stack&version=2.2.0
                    
Install as a Cake Tool

4Stack

4Stack Encryption Library is a lightweight and easy-to-use C# library featuring multiple utilities, including string encryption and decryption* through various encoding techniques and the TerminalUI tool, which enhances the visual experience of your terminal applications. It provides interactive methods that allow developers to encode, decode, and display data directly via parameters with instant feedback.

The library is designed for efficiency, scalability, and simplicity, ensuring seamless integration across multiple .NET versions. 4Stack is continuously updated — each new release introduces refined features, improved performance, and expanded functionality to support modern development workflows.

Features / New Features

--

Feature Description
Base64 Encoding Encode your string into Base64.
Base64 Decoding Decode a Base64 string back to original.
Hex Encoding Convert string to hexadecimal format.
Hex Decoding Convert hexadecimal string back to original.
ROT13 Encode or decode text using ROT13.
Base32 Encoding Encode text into Base32.
Base32 Decoding Decode Base32 back to original text.
Simple Usage All methods are void and take the string as a parameter.
Console Output Directly prints the result to the console.
Systems Improved Various codes in the library have been fixed and verified.

Version 2.2.0: This version may contain bugs.


Installation

Install via .NET CLI:

dotnet add package 4Stack

Usage Examples

Encryption Examples

using _4Stack.MainTools;

class Program
{
    static void Main()
    {
        Encrypt.toEncrypt.Base64("Hello World");
        Encrypt.toEncrypt.Hex("Hello World");
        Encrypt.toEncrypt.ROT13("Hello World");
        Encrypt.toEncrypt.Base32("Hello World");
    }
}

Output:

SGVsbG8gV29ybGQ=
48656c6c6f20576f726c64
Uryyb Jbeyq
JBSWY3DPEBLW64TMMQ======

Decryption Examples

using _4Stack.ReverseTools;

class Program
{
    static void Main()
    {
        EncryptToString.toDecrypt.Base64("SGVsbG8gV29ybGQ=");
        EncryptToString.toDecrypt.Hex("48656c6c6f20576f726c64");
        EncryptToString.toDecrypt.ROT13("Uryyb Jbeyq");
        EncryptToString.toDecrypt.Base32("JBSWY3DPEBLW64TMMQ======");
    }
}

Output:

Hello World
Hello World
Hello World
Hello World

TerminalUI Example

public class Program
{
    public static void Main()
    {
        var window = new TerminalUI.MainContent("Hello World Demo", width: 40, height: 8)
            .Color(ConsoleColor.Yellow)
            .Run(win =>
            {
                win.WriteLine("Hello, World!", 2, 2);
                win.WriteLine("Press any key to exit...", 2, 4);
            });

        window.Show();
    }
}

Output:

╔══════════════════════════════════════╗ 
║ Hello World Demo                     ║  
╠══════════════════════════════════════╣  
║                                      ║  
║                                      ║  
║ Hello, World!                        ║  
║                                      ║  
╚═Press any key to exit...═════════════╝

License

MIT License. Free to use, modify, and distribute.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 is compatible.  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 is compatible.  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.  net10.0 was computed.  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
2.2.0 174 10/30/2025
2.1.0 170 10/30/2025
2.1.0-patched 164 10/30/2025
2.0.0 162 10/30/2025
1.2.0 158 10/30/2025
1.1.0 163 10/30/2025
1.0.0-pre-release 156 10/30/2025