done with printing stuff, saving is non trivial due to classes without constructors or something

This commit is contained in:
Rusty Striker 2025-01-06 20:27:54 +02:00
parent 2aa4a86e5f
commit 2a3be450be
Signed by: RustyStriker
GPG key ID: 87E4D691632DFF15
8 changed files with 277 additions and 109 deletions

View file

@ -1,10 +1,17 @@
using System.Linq;
using System.Text;
namespace lib;
public static class Utils
{
// some print color coding constants for ease of change later
/// Encrypted stuff
public const ConsoleColor C_ENC = ConsoleColor.Green;
/// Non encrypted stuff (either before encryption or after decryption)
public const ConsoleColor C_DEC = ConsoleColor.Red;
/// System messages
public const ConsoleColor C_SYS = ConsoleColor.Yellow;
public static byte[] NumberToBytes(string Number)
{
if (Number.Any(c => !char.IsDigit(c)) || Number.Length > 16)