done with printing stuff, saving is non trivial due to classes without constructors or something
This commit is contained in:
parent
2aa4a86e5f
commit
2a3be450be
8 changed files with 277 additions and 109 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue