From c71bf9dd8446b068716f82ea4cde429217ba5cfd Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Mon, 22 May 2023 08:38:50 -0400 Subject: [PATCH] Initial commit --- .gitignore | 10 ++++++ Program.cs | 34 ------------------ ...17603a8f-c0a7-4bc8-8789-1efd8b0e9d9d.vsidx | Bin 0 -> 4305 bytes ...cbe45844-82c4-4c75-a6ef-49b6ebca165c.vsidx | Bin 0 -> 3858 bytes .../ShiftCipher/FileContentIndex/read.lock | 0 ShiftCipher/.vs/ShiftCipher/v17/.suo | Bin 0 -> 30720 bytes ShiftCipher/Program.cs | 9 +++++ ShiftCipher/ShiftCipher.csproj | 10 ++++++ ShiftCipher/ShiftCipher.sln | 31 ++++++++++++++++ Shift_Cipher.csproj | 8 ----- Shift_Cipher.sln | 25 ------------- Testing/Program.cs | 11 ++++++ Testing/Testing.csproj | 14 ++++++++ 13 files changed, 85 insertions(+), 67 deletions(-) create mode 100644 .gitignore delete mode 100644 Program.cs create mode 100644 ShiftCipher/.vs/ShiftCipher/FileContentIndex/17603a8f-c0a7-4bc8-8789-1efd8b0e9d9d.vsidx create mode 100644 ShiftCipher/.vs/ShiftCipher/FileContentIndex/cbe45844-82c4-4c75-a6ef-49b6ebca165c.vsidx create mode 100644 ShiftCipher/.vs/ShiftCipher/FileContentIndex/read.lock create mode 100644 ShiftCipher/.vs/ShiftCipher/v17/.suo create mode 100644 ShiftCipher/Program.cs create mode 100644 ShiftCipher/ShiftCipher.csproj create mode 100644 ShiftCipher/ShiftCipher.sln delete mode 100644 Shift_Cipher.csproj delete mode 100644 Shift_Cipher.sln create mode 100644 Testing/Program.cs create mode 100644 Testing/Testing.csproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd9722c --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Compilation files. +ShiftCipher/bin +ShiftCipher/obj + +Testing/bin +Testing/obj + +# Visual Studio stuff. +ShiftCipher/.vs +Testing/.vs diff --git a/Program.cs b/Program.cs deleted file mode 100644 index 5c57af6..0000000 --- a/Program.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; - -namespace Shift_Cipher -{ - class Program - { - public static void Main(string[] args) - { - string shiftedAlphabet = "", finalStr = "", alphabet = "abcdefghijklmnopqrstuvwxyz"; - Console.Write("Enter a string to be shifted: "); - string input = Console.ReadLine(); - Console.Write("Enter an amount to shift the string between 1 and 25 inclusive: "); - string shiftS = Console.ReadLine(); - int shift = Convert.ToInt32(shiftS); - shiftedAlphabet += alphabet.Substring(shift) + alphabet.Substring(0, shift); - input = input.ToLower(); - for(int i = 0; i < input.Length; i++) - { - if (input.Substring(i, 1).Equals(" ")) - { - finalStr += " "; - continue; - } - for(int j = 0; j < alphabet.Length; j++) - { - if (input.Substring(i, 1).Equals(alphabet.Substring(j, 1))) - finalStr += shiftedAlphabet.Substring(j, 1); - } - } - Console.WriteLine("Shifted String: " + finalStr); - - } - } -} diff --git a/ShiftCipher/.vs/ShiftCipher/FileContentIndex/17603a8f-c0a7-4bc8-8789-1efd8b0e9d9d.vsidx b/ShiftCipher/.vs/ShiftCipher/FileContentIndex/17603a8f-c0a7-4bc8-8789-1efd8b0e9d9d.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..6b0f0e0abbb53fe81225603818d199615d537748 GIT binary patch literal 4305 zcmbu9`I8$*701`aAsh*@!JHw0#ZhaBX3S|=&x&o0o}^y&Oi#LdA}^%^60_JFC-Jho z9Ok|P2?R*OQBYhdAOXTz6!%r(zK`P0-vNIB@7wdxD6YUSd~08S`gOne`gLoid@$O- zw6t{R0UlVGL;Kh|7sTljaJX}%bL4m@NjhWd6neQc?&h`|C`o3?(JaY*Quw5##19fb zPI!Ill9^9am8waqi&TfSq_nJ4Tc?#vgF2d}$C9HfX_}=vOUo>^Sz2Xj$aInEkd<|2 z>#TBFP^+C}wNvz{?9qu{Nh&E+->95aZj~<8M5%(58!7KqAQiN#UEfgO=zgJcUFACD z9B%5|_H$e2&gQ<#LoW|*aJVy|)xo4Q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8KzQJwf_Je9}6w70X zZhNCPaDYO?i{=WhHMx*us literal 0 HcmV?d00001 diff --git a/ShiftCipher/.vs/ShiftCipher/FileContentIndex/cbe45844-82c4-4c75-a6ef-49b6ebca165c.vsidx b/ShiftCipher/.vs/ShiftCipher/FileContentIndex/cbe45844-82c4-4c75-a6ef-49b6ebca165c.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..d609ad505bb9b221a566563d725f346299b89189 GIT binary patch literal 3858 zcmbu=`A~q{1N=_Kfv#vqsL#p-|Cy`$sYX4d$#&hx8B`7Gn;0kJ)KVH zrPuI<19ikME-zjbs-4};f$nm5`EYkkU1PhsUh0mQx~7-fo~P(w66IA?P*i16HIAk( zj#aECvCiXy;-Zdi9hWZl>R=KdiVm*CaT4n!E|S@XSlqcCiYKzp_ z)c3Ok-K@KuQI<`*+2jZ`LOGBvs|Mj2y`z1dim zE1#=6rz)puuG8GQyfk?g7iv(byr89md_mJE9r&i zL*1FN>B@S2dSmPK`pGl*Zk$=qHcp@1KDD_%I8@P|D1dDAG`j~g~QIxCcOCO)~S2W{ww`A7T&(J z+3K?MJBs+eq9D%K@%2R=-(Lhoe*QbYDB3UPf`G^`5wRt5>CfY|3+@y#p(qWvx6 zb>acB%OW72?e$zR{;lE-;*Bff`I2ZT{@sr{i@l)cb#RtUCh@TZd$08usdyos_!EkLv z`{%j9FNj|hza)NHd`NtlML^7ZMEnYifN1}!_%-oS@$2F@#BYk<62C2eNBk~}SQP6& z#sz*){J!`D@rUA%Sj3{3_hT;bCtMH^`Qzdf;*;W2;?v?Y;!nk&i9Z*AA^uW)Ry@lh zAoe>a{)$B`ivH(9Ya{YsbAi7Re=9yO{!aY8_y_Ti;-ADni!ZPUh;{!W{*^^QwEs=~ zyZGF0u5eu35dL3v_F^Q8)IvIMYdcm^4TJZfmW3e~UjFBh9Uc2FoK_+Yi|#_Lp)K5bc!*pAgqV8An=vFBGfvaYs7!zeL5FrOp@75GI3^h zAtsAl<+i?9T9yx1NtF+jPokD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7n}GKiAp;a-QI|^Z$D5 zgS58c98y5-im?0V|2^;jBldndhhaN7Y;Ada5nmPmd*T1HALXet5G@fqA78*-+T+;w z-MRmdI7^~r&;-AJ{-U=3b$9-syu2A;%KsG7-sM!ZYSVc8{6B3dQ~GIlQU@@&>2G)5 zPUfm!yE%V0hU`lI+nv9!Vru-P&Oh@^nJN9c{I$bRezXca|Hs+ozK;n%+s6y%|2cQ) zhW|bA|MJ}l-2c!1U$=sOo@wuf|GVw~rEGnZJ8d?m>!1IZJ`+>mhxgC_@7(`K`M#OT z|4HzzhyFjJ-%%z_@gGClUi<&ho-@V&Fw&~?X+7}&5qOE40Y$eB`uOX%Kf3k*kl4-e zbF5PKha10~k8%N@d&WloAHw(Kc9dyKe~;QkS{XZ1%P3hPDKYDTgd%&UH z6u&Ni{qx^o-VQ^j?XRPA_dhis?bQEA)j==2*)#V5n)Uyx|4rZjM_-$(^}4BYR{0-O zr4n5u`oBm07Xx zAG_lNQKwnx29-fqSrzxVw=r0295x9U^vWbJ~b_5DA%SJU_Zz~T7De~!o8@YrEc<4A|uwv#{h4o@?7 z9|qxjUF(5Ww)lI1oJ~yeIU=&)(0pN_!!G`ybC^@EQOB literal 0 HcmV?d00001 diff --git a/ShiftCipher/Program.cs b/ShiftCipher/Program.cs new file mode 100644 index 0000000..1df4a71 --- /dev/null +++ b/ShiftCipher/Program.cs @@ -0,0 +1,9 @@ +namespace JacobMaurer.ShiftCipher; + +public static class ShiftCipher +{ + static ShiftCipher() + { + Console.WriteLine("Loaded"); + } +} diff --git a/ShiftCipher/ShiftCipher.csproj b/ShiftCipher/ShiftCipher.csproj new file mode 100644 index 0000000..dc2bb05 --- /dev/null +++ b/ShiftCipher/ShiftCipher.csproj @@ -0,0 +1,10 @@ + + + + Library + net7.0 + enable + enable + + + diff --git a/ShiftCipher/ShiftCipher.sln b/ShiftCipher/ShiftCipher.sln new file mode 100644 index 0000000..3895f2a --- /dev/null +++ b/ShiftCipher/ShiftCipher.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33213.308 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShiftCipher", "ShiftCipher.csproj", "{ED2BA0A8-49A4-48C7-B22C-EA120D871199}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Testing", "..\Testing\Testing.csproj", "{C58B7E62-8A1D-4F1C-A160-C5E6366A3C57}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ED2BA0A8-49A4-48C7-B22C-EA120D871199}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ED2BA0A8-49A4-48C7-B22C-EA120D871199}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ED2BA0A8-49A4-48C7-B22C-EA120D871199}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ED2BA0A8-49A4-48C7-B22C-EA120D871199}.Release|Any CPU.Build.0 = Release|Any CPU + {C58B7E62-8A1D-4F1C-A160-C5E6366A3C57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C58B7E62-8A1D-4F1C-A160-C5E6366A3C57}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C58B7E62-8A1D-4F1C-A160-C5E6366A3C57}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C58B7E62-8A1D-4F1C-A160-C5E6366A3C57}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {50ADF85F-11D5-416F-A8B0-0D30F1634269} + EndGlobalSection +EndGlobal diff --git a/Shift_Cipher.csproj b/Shift_Cipher.csproj deleted file mode 100644 index d453e9a..0000000 --- a/Shift_Cipher.csproj +++ /dev/null @@ -1,8 +0,0 @@ - - - - Exe - netcoreapp3.1 - - - diff --git a/Shift_Cipher.sln b/Shift_Cipher.sln deleted file mode 100644 index 6c2b385..0000000 --- a/Shift_Cipher.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30320.27 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shift_Cipher", "Shift_Cipher\Shift_Cipher.csproj", "{3720F8E0-09B0-47FB-AED7-81451CD7558D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3720F8E0-09B0-47FB-AED7-81451CD7558D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3720F8E0-09B0-47FB-AED7-81451CD7558D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3720F8E0-09B0-47FB-AED7-81451CD7558D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3720F8E0-09B0-47FB-AED7-81451CD7558D}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {B3BEA252-4714-4C9F-AFD6-06D70481A1CC} - EndGlobalSection -EndGlobal diff --git a/Testing/Program.cs b/Testing/Program.cs new file mode 100644 index 0000000..088da70 --- /dev/null +++ b/Testing/Program.cs @@ -0,0 +1,11 @@ +using JacobMaurer.ShiftCipher; + +namespace JacobMaurer.Testing; + +public static class Program +{ + public static void Main() + { + + } +} diff --git a/Testing/Testing.csproj b/Testing/Testing.csproj new file mode 100644 index 0000000..b64cdcf --- /dev/null +++ b/Testing/Testing.csproj @@ -0,0 +1,14 @@ + + + + Exe + net7.0 + enable + enable + + + + + + +