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 0000000..6b0f0e0 Binary files /dev/null and b/ShiftCipher/.vs/ShiftCipher/FileContentIndex/17603a8f-c0a7-4bc8-8789-1efd8b0e9d9d.vsidx differ 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 0000000..d609ad5 Binary files /dev/null and b/ShiftCipher/.vs/ShiftCipher/FileContentIndex/cbe45844-82c4-4c75-a6ef-49b6ebca165c.vsidx differ diff --git a/ShiftCipher/.vs/ShiftCipher/FileContentIndex/read.lock b/ShiftCipher/.vs/ShiftCipher/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/ShiftCipher/.vs/ShiftCipher/v17/.suo b/ShiftCipher/.vs/ShiftCipher/v17/.suo new file mode 100644 index 0000000..d5fc9ce Binary files /dev/null and b/ShiftCipher/.vs/ShiftCipher/v17/.suo differ 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 + + + + + + +