4Stack 2.2.0
dotnet add package 4Stack --version 2.2.0
NuGet\Install-Package 4Stack -Version 2.2.0
<PackageReference Include="4Stack" Version="2.2.0" />
<PackageVersion Include="4Stack" Version="2.2.0" />
<PackageReference Include="4Stack" />
paket add 4Stack --version 2.2.0
#r "nuget: 4Stack, 2.2.0"
#:package 4Stack@2.2.0
#addin nuget:?package=4Stack&version=2.2.0
#tool nuget:?package=4Stack&version=2.2.0
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 | Versions 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. |
-
net6.0
- Figgle (>= 0.6.5)
- LibreHardwareMonitorLib (>= 0.9.4)
- System.IO.Ports (>= 9.0.10)
- System.Management (>= 9.0.10)
-
net7.0
- Figgle (>= 0.6.5)
- LibreHardwareMonitorLib (>= 0.9.4)
- System.IO.Ports (>= 9.0.10)
- System.Management (>= 9.0.10)
-
net8.0
- Figgle (>= 0.6.5)
- LibreHardwareMonitorLib (>= 0.9.4)
- System.IO.Ports (>= 9.0.10)
- System.Management (>= 9.0.10)
-
net9.0
- Figgle (>= 0.6.5)
- LibreHardwareMonitorLib (>= 0.9.4)
- System.IO.Ports (>= 9.0.10)
- System.Management (>= 9.0.10)
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 |