From ad416cc5fc5d25165309fd3c55e09f10c632c5bf Mon Sep 17 00:00:00 2001 From: Sergey Egorov Date: Sat, 29 May 2021 18:18:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 63 +++ .gitignore | 363 ++++++++++++++++++ .vs/CriptBySergo/v16/.suo | Bin 43008 -> 58880 bytes CriptBySergo/Cript.cs | 38 ++ CriptBySergo/CriptBySergo.csproj | 1 + CriptBySergo/Form1.cs | 44 +-- .../DesignTimeResolveAssemblyReferences.cache | Bin 1435 -> 805 bytes ...gnTimeResolveAssemblyReferencesInput.cache | Bin 7232 -> 7220 bytes 8 files changed, 485 insertions(+), 24 deletions(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 CriptBySergo/Cript.cs diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9491a2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,363 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd \ No newline at end of file diff --git a/.vs/CriptBySergo/v16/.suo b/.vs/CriptBySergo/v16/.suo index f59fd0482ad70dbccdb09ffa9f78abba23d32d5f..5d443963e8d71bebb556a8390f0a3f9d7fc4aca3 100644 GIT binary patch literal 58880 zcmeHQdyrdKdB1DcA+IJRfh15!++Rk)_b)iEG?F^;NFq5H4%RfwqChqTd&poT7 zt1IbBerj`%=F_>4^Zd>^-}jyGeCOPSpIr2-haZ2#e`q$hQG1p4^09NYvy|t3%C+_y zO*mdy6&`S7KHJ>)772%h)18hpy?ow^}Vw>x2VlBM(i6AE zqwU52jAm#zXmh|s9;GR26)RjbZ?(3pk7FbRU^$wFQ=fkjH@~(X$ojM1b0|p(_%Hxd zC_xHfs1Y5mk$=baC+c-;F#idzUs4drv3voZDUZy{emr}<_55}4FR`vKhJQKWQUK## z1phq18?5`~@QLf!0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/null +++ b/CriptBySergo/Cript.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CriptBySergo +{ + public class Cript + { + /** + * Алгоритм для (де-)шифрование данных + * KEY по умолчанию = 2021. + * + */ + + public static string Encode(string Text, int Key = 2021) + { + char[] arr = Text.ToCharArray(); + var encrypt = ""; + + for ( int i = 0; i < arr.Length; i++ ) + encrypt += ( arr[i] * Key ).ToString() + '-'; + return encrypt; + } + + public static string Decode(string Text, int Key = 2021) + { + string[] arr = Text.Split('-'); + var decrypt = ""; + + for ( int i = 0; i < arr.Length - 1; i++ ) + decrypt += ( ( char )( Convert.ToInt32(arr[i]) / Key ) ).ToString(); + return decrypt; + } + } +} diff --git a/CriptBySergo/CriptBySergo.csproj b/CriptBySergo/CriptBySergo.csproj index b1e20ef..66e1d57 100644 --- a/CriptBySergo/CriptBySergo.csproj +++ b/CriptBySergo/CriptBySergo.csproj @@ -46,6 +46,7 @@ + Form diff --git a/CriptBySergo/Form1.cs b/CriptBySergo/Form1.cs index eea1665..a7e9631 100644 --- a/CriptBySergo/Form1.cs +++ b/CriptBySergo/Form1.cs @@ -1,4 +1,5 @@ -using System; +using CriptBySergo; +using System; using System.Windows.Forms; namespace EncryptString { @@ -7,39 +8,34 @@ public Form1() { InitializeComponent(); } - public string encrypt; - public int key = 2019; //Указываем переменную ключа. - private void button1_Click(object sender, EventArgs e) + public void Clear() { - char[] arr = textBox1.Text.ToCharArray(); //Разбираем строку на символы и записываем в массив. - encrypt = ""; - for (int i = 0; i < arr.Length; i++) - { - encrypt += ((int)arr[i] * key).ToString() + '-'; //Приводим символ к типу int,умножаем на (переменная key) и разделяем каждый "шифрованный символ символом '-'. - } - - textBox2.Text = encrypt; //заполняем textBox2 - textBox1.Clear(); //Очистка textBox'ов + textBox1.Clear(); textBox3.Clear(); } + private void button1_Click(object sender, EventArgs e) + { + var text = textBox1.Text; + var key = int.Parse(textBox4.Text); - private void button2_Click_1(object sender, EventArgs e) { - string[] arr = textBox2.Text.Split('-'); //Наши "символы же разделены '-', вот и ищем их. - for (int i = 0; i < arr.Length; i++) { - try { - textBox3.Text += ((char)(Convert.ToInt32(arr[i]) / key)).ToString();//Тут вот муть какая-то, обернул в try, catch. Делим обратно на 2019 и приводим к типу char. - } + var encoding = Cript.Encode(text, key); + textBox2.Text = encoding; - catch { - } - } - textBox2.Clear(); //Очистка textBox'ов + Clear(); + } + + private void button2_Click_1(object sender, EventArgs e) + { + var key = int.Parse(textBox4.Text); + var text = textBox2.Text; + var decoding = Cript.Decode(text, key); + textBox3.Text = decoding; } private void textBox4_TextChanged(object sender, EventArgs e) { - key = int.Parse(textBox4.Text); + /**/ } private void textBox4_KeyPress(object sender, KeyPressEventArgs e) diff --git a/CriptBySergo/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/CriptBySergo/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 022513e750569a4faa681679eccd5b9283b4dc0d..84caf5549b04e60e9997bc41f5b6d2cf31719368 100644 GIT binary patch literal 805 zcmcJLy^6v>6h>znS$qKzwn(YX;I50ScJU{jvZ!D)Aj#w=T%5_k++g%Me71cRYhz_O z)s!E6a1Lj)*zK2`cNk+lUC!m7v!zQ-l%NKR2G{9iD0fhRgGxaZ6M@Mz0?7?3XUP_| zOxiy*)}5u;t`F~Z`4PY3TN+ZS-W{jI4{QZq; zFye?+ZW|Jbb%y*dr;sk*5=BV*3JA-}pP&pX;nD`H(r*zaMXVGMVTKy(n^)oq)I|RW literal 1435 zcmcIkU2oGc6m{Ap>&JldwSlyU@CI6CrIfOPRH4yPA@Mb6HC`enH@PWRop`d7mGU?E zZTt(Kc?I9BDk3Vp)lyFE zWYLg?nN(ZLdYZ=WKqlu*fvVwmNBk?;=Am{^naDvCQYDVltnDm)yi*ZRnON=l@&52x z4Q<#4uH(c(Ksg&9{bL_i**xRZ)Py@=8i-}Ja3k(>w+zICr@@JmQ^gW*XwuN${V#`) z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