forked from kalmar/DALGLI0
poprawiona wersja
This commit is contained in:
parent
637763e631
commit
066f6ee9f1
26
FCS/.vscode/launch.json
vendored
26
FCS/.vscode/launch.json
vendored
@ -1,26 +0,0 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": ".NET Core Launch (console)",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/FCS.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"console": "integratedTerminal",
|
||||
"stopAtEntry": false,
|
||||
"internalConsoleOptions": "openOnSessionStart"
|
||||
},
|
||||
{
|
||||
"name": ".NET Core Attach",
|
||||
"type": "coreclr",
|
||||
"request": "attach",
|
||||
"processId": "${command:pickProcess}"
|
||||
}
|
||||
]
|
||||
}
|
15
FCS/.vscode/tasks.json
vendored
15
FCS/.vscode/tasks.json
vendored
@ -1,15 +0,0 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/FCS.csproj"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -1,89 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
namespace FCS
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static StringBuilder encoded=new StringBuilder();
|
||||
static void Main(string[] args)
|
||||
{
|
||||
while(true)
|
||||
{
|
||||
Console.Clear();
|
||||
Console.WriteLine("1. Zakoduj wiadomosc");
|
||||
Console.WriteLine("2. Odkoduj wiadomosc");
|
||||
Console.WriteLine("3. Wyjscie");
|
||||
int choice=0;
|
||||
if(!int.TryParse(Console.ReadLine(),out choice))
|
||||
Console.WriteLine("Nieprawidlowe dane");
|
||||
else{
|
||||
Console.Clear();
|
||||
if(choice==1)
|
||||
{
|
||||
Console.WriteLine("Podaj wiadomosc do zaszyfrowania.");
|
||||
string input =Console.ReadLine();
|
||||
byte[] bytes = BitConverter.GetBytes(EncodeCRT(input));
|
||||
Encoding.ASCII.GetBytes(input).ToList().ForEach(x=>{Console.Write(x+" ");});
|
||||
foreach(byte b in bytes)
|
||||
Console.Write(b+" ");
|
||||
Console.WriteLine();
|
||||
}
|
||||
if(choice==2)
|
||||
{
|
||||
Console.WriteLine("Podaj wiadomosc do odkodowania.(kod ASCII odzielony spacjami wraz z checksum)");
|
||||
string input=Console.ReadLine();
|
||||
string[] asciiInput=input.Split(' ');
|
||||
StringBuilder msg=new StringBuilder();
|
||||
for(int i=0;i<asciiInput.Length-2;i++)
|
||||
{
|
||||
msg.Append((char)int.Parse(asciiInput[i]));
|
||||
}
|
||||
byte[] bytes = BitConverter.GetBytes(EncodeCRT(msg.ToString()));
|
||||
bool result=true;
|
||||
for(int j=0;j<bytes.Length;j++)
|
||||
{
|
||||
if(bytes[j]!=int.Parse(asciiInput[j + asciiInput.Length - 2].ToString()))
|
||||
{
|
||||
result=false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Console.WriteLine(result);
|
||||
}
|
||||
if(choice==3)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Console.WriteLine("Nacisnij dowolny klawisz, aby wrocic do poczatku.");
|
||||
Console.ReadKey();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
private static ushort EncodeCRT(string strInput)
|
||||
{
|
||||
ushort data;
|
||||
ushort crc = 0xFFFF; //uzupelniamy 16 bitow jedynkami
|
||||
|
||||
byte[] bytes = Encoding.ASCII.GetBytes(strInput);
|
||||
for (int j = 0; j < bytes.Length; j++)
|
||||
{
|
||||
crc = (ushort)(crc ^ bytes[j]); // XOR
|
||||
for (int i = 0; i < 8; i++) //obsluga bajta
|
||||
{
|
||||
if ((crc & 0x0001) == 1)
|
||||
crc = (ushort)((crc >> 1) ^ 0x8408); //Wykonuje XOR
|
||||
else
|
||||
crc >>= 1;
|
||||
}
|
||||
}
|
||||
crc = (ushort)~crc; //negujemy
|
||||
data = crc;
|
||||
crc = (ushort)((crc << 8) ^ (data >> 8 & 0xFF));
|
||||
return crc;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v2.0",
|
||||
"signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709"
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v2.0": {
|
||||
"FCS/1.0.0": {
|
||||
"runtime": {
|
||||
"FCS.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"FCS/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,9 +0,0 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"additionalProbingPaths": [
|
||||
"/home/piotrek/.dotnet/store/|arch|/|tfm|",
|
||||
"/home/piotrek/.nuget/packages",
|
||||
"/usr/share/dotnet/sdk/NuGetFallbackFolder"
|
||||
]
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "netcoreapp2.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "2.0.0"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("FCS")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("FCS")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("FCS")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
@ -1 +0,0 @@
|
||||
d6e129d647cae90133ecd69184f8f4e639620de6
|
@ -1 +0,0 @@
|
||||
eb536e9c3e7822d620a07bc1467f8f72562eeca4
|
@ -1,22 +0,0 @@
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/bin/Debug/netcoreapp2.0/FCS.deps.json
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/bin/Debug/netcoreapp2.0/FCS.runtimeconfig.json
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/bin/Debug/netcoreapp2.0/FCS.runtimeconfig.dev.json
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/bin/Debug/netcoreapp2.0/FCS.dll
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/bin/Debug/netcoreapp2.0/FCS.pdb
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/obj/Debug/netcoreapp2.0/FCS.csprojAssemblyReference.cache
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/obj/Debug/netcoreapp2.0/FCS.csproj.CoreCompileInputs.cache
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/obj/Debug/netcoreapp2.0/FCS.AssemblyInfoInputs.cache
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/obj/Debug/netcoreapp2.0/FCS.AssemblyInfo.cs
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/obj/Debug/netcoreapp2.0/FCS.dll
|
||||
/home/piotrek/Projects/Studia/C Sharp/FCS/obj/Debug/netcoreapp2.0/FCS.pdb
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/bin/Debug/netcoreapp2.0/FCS.deps.json
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/bin/Debug/netcoreapp2.0/FCS.runtimeconfig.json
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/bin/Debug/netcoreapp2.0/FCS.runtimeconfig.dev.json
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/bin/Debug/netcoreapp2.0/FCS.dll
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/bin/Debug/netcoreapp2.0/FCS.pdb
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/Debug/netcoreapp2.0/FCS.csprojAssemblyReference.cache
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/Debug/netcoreapp2.0/FCS.csproj.CoreCompileInputs.cache
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/Debug/netcoreapp2.0/FCS.AssemblyInfoInputs.cache
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/Debug/netcoreapp2.0/FCS.AssemblyInfo.cs
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/Debug/netcoreapp2.0/FCS.dll
|
||||
/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/Debug/netcoreapp2.0/FCS.pdb
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +0,0 @@
|
||||
{
|
||||
"version": 1,
|
||||
"dgSpecHash": "MruLJ7UwwmFOlfg5rdQcsBRd7Yu01y0m9VtqhmI6ypiOPOcm7AcF0h4MA3XwLshtncwvcbDN9tCkIFSXX5s6KA==",
|
||||
"success": true
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/piotrek/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/piotrek/.nuget/packages/;/usr/share/dotnet/sdk/NuGetFallbackFolder</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.7.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
</PropertyGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/build/netcoreapp2.0/Microsoft.NETCore.App.props" Condition="Exists('/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/build/netcoreapp2.0/Microsoft.NETCore.App.props')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
</PropertyGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="/usr/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/NETStandard.Library.targets" Condition="Exists('/usr/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/NETStandard.Library.targets')" />
|
||||
<Import Project="/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/build/netcoreapp2.0/Microsoft.NETCore.App.targets" Condition="Exists('/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/build/netcoreapp2.0/Microsoft.NETCore.App.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
@ -1,719 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v2.0": {
|
||||
"Microsoft.NETCore.App/2.0.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.DotNetHostPolicy": "2.0.0",
|
||||
"Microsoft.NETCore.Platforms": "2.0.0",
|
||||
"NETStandard.Library": "2.0.0"
|
||||
},
|
||||
"compile": {
|
||||
"ref/netcoreapp2.0/Microsoft.CSharp.dll": {},
|
||||
"ref/netcoreapp2.0/Microsoft.VisualBasic.dll": {},
|
||||
"ref/netcoreapp2.0/Microsoft.Win32.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.AppContext.dll": {},
|
||||
"ref/netcoreapp2.0/System.Buffers.dll": {},
|
||||
"ref/netcoreapp2.0/System.Collections.Concurrent.dll": {},
|
||||
"ref/netcoreapp2.0/System.Collections.Immutable.dll": {},
|
||||
"ref/netcoreapp2.0/System.Collections.NonGeneric.dll": {},
|
||||
"ref/netcoreapp2.0/System.Collections.Specialized.dll": {},
|
||||
"ref/netcoreapp2.0/System.Collections.dll": {},
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Annotations.dll": {},
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Composition.dll": {},
|
||||
"ref/netcoreapp2.0/System.ComponentModel.DataAnnotations.dll": {},
|
||||
"ref/netcoreapp2.0/System.ComponentModel.EventBasedAsync.dll": {},
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.ComponentModel.TypeConverter.dll": {},
|
||||
"ref/netcoreapp2.0/System.ComponentModel.dll": {},
|
||||
"ref/netcoreapp2.0/System.Configuration.dll": {},
|
||||
"ref/netcoreapp2.0/System.Console.dll": {},
|
||||
"ref/netcoreapp2.0/System.Core.dll": {},
|
||||
"ref/netcoreapp2.0/System.Data.Common.dll": {},
|
||||
"ref/netcoreapp2.0/System.Data.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Contracts.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Debug.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.DiagnosticSource.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.FileVersionInfo.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Process.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.StackTrace.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.TextWriterTraceListener.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Tools.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.TraceSource.dll": {},
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Tracing.dll": {},
|
||||
"ref/netcoreapp2.0/System.Drawing.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.Drawing.dll": {},
|
||||
"ref/netcoreapp2.0/System.Dynamic.Runtime.dll": {},
|
||||
"ref/netcoreapp2.0/System.Globalization.Calendars.dll": {},
|
||||
"ref/netcoreapp2.0/System.Globalization.Extensions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Globalization.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.Compression.FileSystem.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.Compression.ZipFile.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.Compression.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.DriveInfo.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.Watcher.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.IsolatedStorage.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.MemoryMappedFiles.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.Pipes.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.UnmanagedMemoryStream.dll": {},
|
||||
"ref/netcoreapp2.0/System.IO.dll": {},
|
||||
"ref/netcoreapp2.0/System.Linq.Expressions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Linq.Parallel.dll": {},
|
||||
"ref/netcoreapp2.0/System.Linq.Queryable.dll": {},
|
||||
"ref/netcoreapp2.0/System.Linq.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.Http.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.HttpListener.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.Mail.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.NameResolution.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.NetworkInformation.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.Ping.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.Requests.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.Security.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.ServicePoint.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.Sockets.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.WebClient.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.WebHeaderCollection.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.WebProxy.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.WebSockets.Client.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.WebSockets.dll": {},
|
||||
"ref/netcoreapp2.0/System.Net.dll": {},
|
||||
"ref/netcoreapp2.0/System.Numerics.Vectors.dll": {},
|
||||
"ref/netcoreapp2.0/System.Numerics.dll": {},
|
||||
"ref/netcoreapp2.0/System.ObjectModel.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.DispatchProxy.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.ILGeneration.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.Lightweight.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.Extensions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.Metadata.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.TypeExtensions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Reflection.dll": {},
|
||||
"ref/netcoreapp2.0/System.Resources.Reader.dll": {},
|
||||
"ref/netcoreapp2.0/System.Resources.ResourceManager.dll": {},
|
||||
"ref/netcoreapp2.0/System.Resources.Writer.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.CompilerServices.VisualC.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Extensions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Handles.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.RuntimeInformation.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.WindowsRuntime.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Loader.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Numerics.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Formatters.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Json.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Xml.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.dll": {},
|
||||
"ref/netcoreapp2.0/System.Runtime.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.Claims.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Algorithms.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Csp.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Encoding.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Primitives.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.X509Certificates.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.Principal.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.SecureString.dll": {},
|
||||
"ref/netcoreapp2.0/System.Security.dll": {},
|
||||
"ref/netcoreapp2.0/System.ServiceModel.Web.dll": {},
|
||||
"ref/netcoreapp2.0/System.ServiceProcess.dll": {},
|
||||
"ref/netcoreapp2.0/System.Text.Encoding.Extensions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Text.Encoding.dll": {},
|
||||
"ref/netcoreapp2.0/System.Text.RegularExpressions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.Overlapped.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Dataflow.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Extensions.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Parallel.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.Thread.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.ThreadPool.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.Timer.dll": {},
|
||||
"ref/netcoreapp2.0/System.Threading.dll": {},
|
||||
"ref/netcoreapp2.0/System.Transactions.Local.dll": {},
|
||||
"ref/netcoreapp2.0/System.Transactions.dll": {},
|
||||
"ref/netcoreapp2.0/System.ValueTuple.dll": {},
|
||||
"ref/netcoreapp2.0/System.Web.HttpUtility.dll": {},
|
||||
"ref/netcoreapp2.0/System.Web.dll": {},
|
||||
"ref/netcoreapp2.0/System.Windows.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.Linq.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.ReaderWriter.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.Serialization.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.XDocument.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.XPath.XDocument.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.XPath.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.XmlDocument.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.XmlSerializer.dll": {},
|
||||
"ref/netcoreapp2.0/System.Xml.dll": {},
|
||||
"ref/netcoreapp2.0/System.dll": {},
|
||||
"ref/netcoreapp2.0/WindowsBase.dll": {},
|
||||
"ref/netcoreapp2.0/mscorlib.dll": {},
|
||||
"ref/netcoreapp2.0/netstandard.dll": {}
|
||||
},
|
||||
"build": {
|
||||
"build/netcoreapp2.0/Microsoft.NETCore.App.props": {},
|
||||
"build/netcoreapp2.0/Microsoft.NETCore.App.targets": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.DotNetAppHost/2.0.0": {
|
||||
"type": "package"
|
||||
},
|
||||
"Microsoft.NETCore.DotNetHostPolicy/2.0.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.DotNetHostResolver": "2.0.0"
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.DotNetHostResolver/2.0.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.DotNetAppHost": "2.0.0"
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/2.0.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
}
|
||||
},
|
||||
"NETStandard.Library/2.0.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
},
|
||||
"build": {
|
||||
"build/netstandard2.0/NETStandard.Library.targets": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Microsoft.NETCore.App/2.0.0": {
|
||||
"sha512": "/mzXF+UtZef+VpzzN88EpvFq5U6z4rj54ZMq/J968H6pcvyLOmcupmTRpJ3CJm8ILoCGh9WI7qpDdiKtuzswrQ==",
|
||||
"type": "package",
|
||||
"path": "microsoft.netcore.app/2.0.0",
|
||||
"files": [
|
||||
"LICENSE.TXT",
|
||||
"Microsoft.NETCore.App.versions.txt",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"build/netcoreapp2.0/Microsoft.NETCore.App.PlatformManifest.txt",
|
||||
"build/netcoreapp2.0/Microsoft.NETCore.App.props",
|
||||
"build/netcoreapp2.0/Microsoft.NETCore.App.targets",
|
||||
"microsoft.netcore.app.2.0.0.nupkg.sha512",
|
||||
"microsoft.netcore.app.nuspec",
|
||||
"ref/netcoreapp/_._",
|
||||
"ref/netcoreapp2.0/Microsoft.CSharp.dll",
|
||||
"ref/netcoreapp2.0/Microsoft.CSharp.xml",
|
||||
"ref/netcoreapp2.0/Microsoft.VisualBasic.dll",
|
||||
"ref/netcoreapp2.0/Microsoft.VisualBasic.xml",
|
||||
"ref/netcoreapp2.0/Microsoft.Win32.Primitives.dll",
|
||||
"ref/netcoreapp2.0/Microsoft.Win32.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.AppContext.dll",
|
||||
"ref/netcoreapp2.0/System.AppContext.xml",
|
||||
"ref/netcoreapp2.0/System.Buffers.dll",
|
||||
"ref/netcoreapp2.0/System.Buffers.xml",
|
||||
"ref/netcoreapp2.0/System.Collections.Concurrent.dll",
|
||||
"ref/netcoreapp2.0/System.Collections.Concurrent.xml",
|
||||
"ref/netcoreapp2.0/System.Collections.Immutable.dll",
|
||||
"ref/netcoreapp2.0/System.Collections.Immutable.xml",
|
||||
"ref/netcoreapp2.0/System.Collections.NonGeneric.dll",
|
||||
"ref/netcoreapp2.0/System.Collections.NonGeneric.xml",
|
||||
"ref/netcoreapp2.0/System.Collections.Specialized.dll",
|
||||
"ref/netcoreapp2.0/System.Collections.Specialized.xml",
|
||||
"ref/netcoreapp2.0/System.Collections.dll",
|
||||
"ref/netcoreapp2.0/System.Collections.xml",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Annotations.dll",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Annotations.xml",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Composition.dll",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.DataAnnotations.dll",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.EventBasedAsync.dll",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.EventBasedAsync.xml",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Primitives.dll",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.TypeConverter.dll",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.TypeConverter.xml",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.dll",
|
||||
"ref/netcoreapp2.0/System.ComponentModel.xml",
|
||||
"ref/netcoreapp2.0/System.Configuration.dll",
|
||||
"ref/netcoreapp2.0/System.Console.dll",
|
||||
"ref/netcoreapp2.0/System.Console.xml",
|
||||
"ref/netcoreapp2.0/System.Core.dll",
|
||||
"ref/netcoreapp2.0/System.Data.Common.dll",
|
||||
"ref/netcoreapp2.0/System.Data.Common.xml",
|
||||
"ref/netcoreapp2.0/System.Data.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Contracts.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Contracts.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Debug.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Debug.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.DiagnosticSource.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.DiagnosticSource.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.FileVersionInfo.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.FileVersionInfo.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Process.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Process.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.StackTrace.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.StackTrace.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.TextWriterTraceListener.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.TextWriterTraceListener.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Tools.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Tools.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.TraceSource.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.TraceSource.xml",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Tracing.dll",
|
||||
"ref/netcoreapp2.0/System.Diagnostics.Tracing.xml",
|
||||
"ref/netcoreapp2.0/System.Drawing.Primitives.dll",
|
||||
"ref/netcoreapp2.0/System.Drawing.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.Drawing.dll",
|
||||
"ref/netcoreapp2.0/System.Dynamic.Runtime.dll",
|
||||
"ref/netcoreapp2.0/System.Dynamic.Runtime.xml",
|
||||
"ref/netcoreapp2.0/System.Globalization.Calendars.dll",
|
||||
"ref/netcoreapp2.0/System.Globalization.Calendars.xml",
|
||||
"ref/netcoreapp2.0/System.Globalization.Extensions.dll",
|
||||
"ref/netcoreapp2.0/System.Globalization.Extensions.xml",
|
||||
"ref/netcoreapp2.0/System.Globalization.dll",
|
||||
"ref/netcoreapp2.0/System.Globalization.xml",
|
||||
"ref/netcoreapp2.0/System.IO.Compression.FileSystem.dll",
|
||||
"ref/netcoreapp2.0/System.IO.Compression.ZipFile.dll",
|
||||
"ref/netcoreapp2.0/System.IO.Compression.ZipFile.xml",
|
||||
"ref/netcoreapp2.0/System.IO.Compression.dll",
|
||||
"ref/netcoreapp2.0/System.IO.Compression.xml",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.DriveInfo.dll",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.DriveInfo.xml",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.Primitives.dll",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.Watcher.dll",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.Watcher.xml",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.dll",
|
||||
"ref/netcoreapp2.0/System.IO.FileSystem.xml",
|
||||
"ref/netcoreapp2.0/System.IO.IsolatedStorage.dll",
|
||||
"ref/netcoreapp2.0/System.IO.IsolatedStorage.xml",
|
||||
"ref/netcoreapp2.0/System.IO.MemoryMappedFiles.dll",
|
||||
"ref/netcoreapp2.0/System.IO.MemoryMappedFiles.xml",
|
||||
"ref/netcoreapp2.0/System.IO.Pipes.dll",
|
||||
"ref/netcoreapp2.0/System.IO.Pipes.xml",
|
||||
"ref/netcoreapp2.0/System.IO.UnmanagedMemoryStream.dll",
|
||||
"ref/netcoreapp2.0/System.IO.UnmanagedMemoryStream.xml",
|
||||
"ref/netcoreapp2.0/System.IO.dll",
|
||||
"ref/netcoreapp2.0/System.IO.xml",
|
||||
"ref/netcoreapp2.0/System.Linq.Expressions.dll",
|
||||
"ref/netcoreapp2.0/System.Linq.Expressions.xml",
|
||||
"ref/netcoreapp2.0/System.Linq.Parallel.dll",
|
||||
"ref/netcoreapp2.0/System.Linq.Parallel.xml",
|
||||
"ref/netcoreapp2.0/System.Linq.Queryable.dll",
|
||||
"ref/netcoreapp2.0/System.Linq.Queryable.xml",
|
||||
"ref/netcoreapp2.0/System.Linq.dll",
|
||||
"ref/netcoreapp2.0/System.Linq.xml",
|
||||
"ref/netcoreapp2.0/System.Net.Http.dll",
|
||||
"ref/netcoreapp2.0/System.Net.Http.xml",
|
||||
"ref/netcoreapp2.0/System.Net.HttpListener.dll",
|
||||
"ref/netcoreapp2.0/System.Net.HttpListener.xml",
|
||||
"ref/netcoreapp2.0/System.Net.Mail.dll",
|
||||
"ref/netcoreapp2.0/System.Net.Mail.xml",
|
||||
"ref/netcoreapp2.0/System.Net.NameResolution.dll",
|
||||
"ref/netcoreapp2.0/System.Net.NameResolution.xml",
|
||||
"ref/netcoreapp2.0/System.Net.NetworkInformation.dll",
|
||||
"ref/netcoreapp2.0/System.Net.NetworkInformation.xml",
|
||||
"ref/netcoreapp2.0/System.Net.Ping.dll",
|
||||
"ref/netcoreapp2.0/System.Net.Ping.xml",
|
||||
"ref/netcoreapp2.0/System.Net.Primitives.dll",
|
||||
"ref/netcoreapp2.0/System.Net.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.Net.Requests.dll",
|
||||
"ref/netcoreapp2.0/System.Net.Requests.xml",
|
||||
"ref/netcoreapp2.0/System.Net.Security.dll",
|
||||
"ref/netcoreapp2.0/System.Net.Security.xml",
|
||||
"ref/netcoreapp2.0/System.Net.ServicePoint.dll",
|
||||
"ref/netcoreapp2.0/System.Net.ServicePoint.xml",
|
||||
"ref/netcoreapp2.0/System.Net.Sockets.dll",
|
||||
"ref/netcoreapp2.0/System.Net.Sockets.xml",
|
||||
"ref/netcoreapp2.0/System.Net.WebClient.dll",
|
||||
"ref/netcoreapp2.0/System.Net.WebClient.xml",
|
||||
"ref/netcoreapp2.0/System.Net.WebHeaderCollection.dll",
|
||||
"ref/netcoreapp2.0/System.Net.WebHeaderCollection.xml",
|
||||
"ref/netcoreapp2.0/System.Net.WebProxy.dll",
|
||||
"ref/netcoreapp2.0/System.Net.WebProxy.xml",
|
||||
"ref/netcoreapp2.0/System.Net.WebSockets.Client.dll",
|
||||
"ref/netcoreapp2.0/System.Net.WebSockets.Client.xml",
|
||||
"ref/netcoreapp2.0/System.Net.WebSockets.dll",
|
||||
"ref/netcoreapp2.0/System.Net.WebSockets.xml",
|
||||
"ref/netcoreapp2.0/System.Net.dll",
|
||||
"ref/netcoreapp2.0/System.Numerics.Vectors.dll",
|
||||
"ref/netcoreapp2.0/System.Numerics.Vectors.xml",
|
||||
"ref/netcoreapp2.0/System.Numerics.dll",
|
||||
"ref/netcoreapp2.0/System.ObjectModel.dll",
|
||||
"ref/netcoreapp2.0/System.ObjectModel.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.DispatchProxy.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.DispatchProxy.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.ILGeneration.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.ILGeneration.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.Lightweight.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.Lightweight.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.Emit.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.Extensions.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.Extensions.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.Metadata.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.Metadata.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.Primitives.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.TypeExtensions.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.TypeExtensions.xml",
|
||||
"ref/netcoreapp2.0/System.Reflection.dll",
|
||||
"ref/netcoreapp2.0/System.Reflection.xml",
|
||||
"ref/netcoreapp2.0/System.Resources.Reader.dll",
|
||||
"ref/netcoreapp2.0/System.Resources.Reader.xml",
|
||||
"ref/netcoreapp2.0/System.Resources.ResourceManager.dll",
|
||||
"ref/netcoreapp2.0/System.Resources.ResourceManager.xml",
|
||||
"ref/netcoreapp2.0/System.Resources.Writer.dll",
|
||||
"ref/netcoreapp2.0/System.Resources.Writer.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.CompilerServices.VisualC.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.CompilerServices.VisualC.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Extensions.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Extensions.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Handles.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Handles.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.RuntimeInformation.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.RuntimeInformation.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.WindowsRuntime.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.WindowsRuntime.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.InteropServices.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Loader.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Loader.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Numerics.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Numerics.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Formatters.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Formatters.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Json.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Json.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Primitives.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Xml.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.Xml.xml",
|
||||
"ref/netcoreapp2.0/System.Runtime.Serialization.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.dll",
|
||||
"ref/netcoreapp2.0/System.Runtime.xml",
|
||||
"ref/netcoreapp2.0/System.Security.Claims.dll",
|
||||
"ref/netcoreapp2.0/System.Security.Claims.xml",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Algorithms.dll",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Algorithms.xml",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Csp.dll",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Csp.xml",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Encoding.dll",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Encoding.xml",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Primitives.dll",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.Primitives.xml",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.X509Certificates.dll",
|
||||
"ref/netcoreapp2.0/System.Security.Cryptography.X509Certificates.xml",
|
||||
"ref/netcoreapp2.0/System.Security.Principal.dll",
|
||||
"ref/netcoreapp2.0/System.Security.Principal.xml",
|
||||
"ref/netcoreapp2.0/System.Security.SecureString.dll",
|
||||
"ref/netcoreapp2.0/System.Security.SecureString.xml",
|
||||
"ref/netcoreapp2.0/System.Security.dll",
|
||||
"ref/netcoreapp2.0/System.ServiceModel.Web.dll",
|
||||
"ref/netcoreapp2.0/System.ServiceProcess.dll",
|
||||
"ref/netcoreapp2.0/System.Text.Encoding.Extensions.dll",
|
||||
"ref/netcoreapp2.0/System.Text.Encoding.Extensions.xml",
|
||||
"ref/netcoreapp2.0/System.Text.Encoding.dll",
|
||||
"ref/netcoreapp2.0/System.Text.Encoding.xml",
|
||||
"ref/netcoreapp2.0/System.Text.RegularExpressions.dll",
|
||||
"ref/netcoreapp2.0/System.Text.RegularExpressions.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.Overlapped.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.Overlapped.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Dataflow.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Dataflow.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Extensions.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Extensions.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Parallel.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.Parallel.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.Tasks.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.Thread.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.Thread.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.ThreadPool.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.ThreadPool.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.Timer.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.Timer.xml",
|
||||
"ref/netcoreapp2.0/System.Threading.dll",
|
||||
"ref/netcoreapp2.0/System.Threading.xml",
|
||||
"ref/netcoreapp2.0/System.Transactions.Local.dll",
|
||||
"ref/netcoreapp2.0/System.Transactions.Local.xml",
|
||||
"ref/netcoreapp2.0/System.Transactions.dll",
|
||||
"ref/netcoreapp2.0/System.ValueTuple.dll",
|
||||
"ref/netcoreapp2.0/System.ValueTuple.xml",
|
||||
"ref/netcoreapp2.0/System.Web.HttpUtility.dll",
|
||||
"ref/netcoreapp2.0/System.Web.HttpUtility.xml",
|
||||
"ref/netcoreapp2.0/System.Web.dll",
|
||||
"ref/netcoreapp2.0/System.Windows.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.Linq.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.ReaderWriter.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.ReaderWriter.xml",
|
||||
"ref/netcoreapp2.0/System.Xml.Serialization.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.XDocument.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.XDocument.xml",
|
||||
"ref/netcoreapp2.0/System.Xml.XPath.XDocument.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.XPath.XDocument.xml",
|
||||
"ref/netcoreapp2.0/System.Xml.XPath.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.XPath.xml",
|
||||
"ref/netcoreapp2.0/System.Xml.XmlDocument.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.XmlDocument.xml",
|
||||
"ref/netcoreapp2.0/System.Xml.XmlSerializer.dll",
|
||||
"ref/netcoreapp2.0/System.Xml.XmlSerializer.xml",
|
||||
"ref/netcoreapp2.0/System.Xml.dll",
|
||||
"ref/netcoreapp2.0/System.dll",
|
||||
"ref/netcoreapp2.0/WindowsBase.dll",
|
||||
"ref/netcoreapp2.0/mscorlib.dll",
|
||||
"ref/netcoreapp2.0/netstandard.dll",
|
||||
"runtime.json"
|
||||
]
|
||||
},
|
||||
"Microsoft.NETCore.DotNetAppHost/2.0.0": {
|
||||
"sha512": "L4GGkcI/Mxl8PKLRpFdGmLb5oI8sGIR05bDTGkzCoamAjdUl1Zhkov2swjEsZvKYT8kkdiz39LtwyGYuCJxm1A==",
|
||||
"type": "package",
|
||||
"path": "microsoft.netcore.dotnetapphost/2.0.0",
|
||||
"files": [
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"microsoft.netcore.dotnetapphost.2.0.0.nupkg.sha512",
|
||||
"microsoft.netcore.dotnetapphost.nuspec",
|
||||
"runtime.json"
|
||||
]
|
||||
},
|
||||
"Microsoft.NETCore.DotNetHostPolicy/2.0.0": {
|
||||
"sha512": "rm7mMn0A93fwyAwVhbyOCcPuu2hZNL0A0dAur9sNG9pEkONPfCEQeF7m2mC8KpqZO0Ol6tpV5J0AF3HTXT3GXA==",
|
||||
"type": "package",
|
||||
"path": "microsoft.netcore.dotnethostpolicy/2.0.0",
|
||||
"files": [
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"microsoft.netcore.dotnethostpolicy.2.0.0.nupkg.sha512",
|
||||
"microsoft.netcore.dotnethostpolicy.nuspec",
|
||||
"runtime.json"
|
||||
]
|
||||
},
|
||||
"Microsoft.NETCore.DotNetHostResolver/2.0.0": {
|
||||
"sha512": "uBbjpeSrwsaTCADZCzRk+3aBzNnMqkC4zftJWBsL+Zk+8u+W+/lMb2thM5Y4hiVrv1YQg9t6dKldXzOKkY+pQw==",
|
||||
"type": "package",
|
||||
"path": "microsoft.netcore.dotnethostresolver/2.0.0",
|
||||
"files": [
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"microsoft.netcore.dotnethostresolver.2.0.0.nupkg.sha512",
|
||||
"microsoft.netcore.dotnethostresolver.nuspec",
|
||||
"runtime.json"
|
||||
]
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/2.0.0": {
|
||||
"sha512": "VdLJOCXhZaEMY7Hm2GKiULmn7IEPFE4XC5LPSfBVCUIA8YLZVh846gtfBJalsPQF2PlzdD7ecX7DZEulJ402ZQ==",
|
||||
"type": "package",
|
||||
"path": "microsoft.netcore.platforms/2.0.0",
|
||||
"files": [
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"lib/netstandard1.0/_._",
|
||||
"microsoft.netcore.platforms.2.0.0.nupkg.sha512",
|
||||
"microsoft.netcore.platforms.nuspec",
|
||||
"runtime.json",
|
||||
"useSharedDesignerContext.txt",
|
||||
"version.txt"
|
||||
]
|
||||
},
|
||||
"NETStandard.Library/2.0.0": {
|
||||
"sha512": "7jnbRU+L08FXKMxqUflxEXtVymWvNOrS8yHgu9s6EM8Anr6T/wIX4nZ08j/u3Asz+tCufp3YVwFSEvFTPYmBPA==",
|
||||
"type": "package",
|
||||
"path": "netstandard.library/2.0.0",
|
||||
"files": [
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"build/NETStandard.Library.targets",
|
||||
"build/netstandard2.0/NETStandard.Library.targets",
|
||||
"build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.AppContext.dll",
|
||||
"build/netstandard2.0/ref/System.Collections.Concurrent.dll",
|
||||
"build/netstandard2.0/ref/System.Collections.NonGeneric.dll",
|
||||
"build/netstandard2.0/ref/System.Collections.Specialized.dll",
|
||||
"build/netstandard2.0/ref/System.Collections.dll",
|
||||
"build/netstandard2.0/ref/System.ComponentModel.Composition.dll",
|
||||
"build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll",
|
||||
"build/netstandard2.0/ref/System.ComponentModel.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll",
|
||||
"build/netstandard2.0/ref/System.ComponentModel.dll",
|
||||
"build/netstandard2.0/ref/System.Console.dll",
|
||||
"build/netstandard2.0/ref/System.Core.dll",
|
||||
"build/netstandard2.0/ref/System.Data.Common.dll",
|
||||
"build/netstandard2.0/ref/System.Data.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.Contracts.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.Debug.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.Process.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.Tools.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll",
|
||||
"build/netstandard2.0/ref/System.Diagnostics.Tracing.dll",
|
||||
"build/netstandard2.0/ref/System.Drawing.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.Drawing.dll",
|
||||
"build/netstandard2.0/ref/System.Dynamic.Runtime.dll",
|
||||
"build/netstandard2.0/ref/System.Globalization.Calendars.dll",
|
||||
"build/netstandard2.0/ref/System.Globalization.Extensions.dll",
|
||||
"build/netstandard2.0/ref/System.Globalization.dll",
|
||||
"build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll",
|
||||
"build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll",
|
||||
"build/netstandard2.0/ref/System.IO.Compression.dll",
|
||||
"build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll",
|
||||
"build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll",
|
||||
"build/netstandard2.0/ref/System.IO.FileSystem.dll",
|
||||
"build/netstandard2.0/ref/System.IO.IsolatedStorage.dll",
|
||||
"build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll",
|
||||
"build/netstandard2.0/ref/System.IO.Pipes.dll",
|
||||
"build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll",
|
||||
"build/netstandard2.0/ref/System.IO.dll",
|
||||
"build/netstandard2.0/ref/System.Linq.Expressions.dll",
|
||||
"build/netstandard2.0/ref/System.Linq.Parallel.dll",
|
||||
"build/netstandard2.0/ref/System.Linq.Queryable.dll",
|
||||
"build/netstandard2.0/ref/System.Linq.dll",
|
||||
"build/netstandard2.0/ref/System.Net.Http.dll",
|
||||
"build/netstandard2.0/ref/System.Net.NameResolution.dll",
|
||||
"build/netstandard2.0/ref/System.Net.NetworkInformation.dll",
|
||||
"build/netstandard2.0/ref/System.Net.Ping.dll",
|
||||
"build/netstandard2.0/ref/System.Net.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.Net.Requests.dll",
|
||||
"build/netstandard2.0/ref/System.Net.Security.dll",
|
||||
"build/netstandard2.0/ref/System.Net.Sockets.dll",
|
||||
"build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll",
|
||||
"build/netstandard2.0/ref/System.Net.WebSockets.Client.dll",
|
||||
"build/netstandard2.0/ref/System.Net.WebSockets.dll",
|
||||
"build/netstandard2.0/ref/System.Net.dll",
|
||||
"build/netstandard2.0/ref/System.Numerics.dll",
|
||||
"build/netstandard2.0/ref/System.ObjectModel.dll",
|
||||
"build/netstandard2.0/ref/System.Reflection.Extensions.dll",
|
||||
"build/netstandard2.0/ref/System.Reflection.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.Reflection.dll",
|
||||
"build/netstandard2.0/ref/System.Resources.Reader.dll",
|
||||
"build/netstandard2.0/ref/System.Resources.ResourceManager.dll",
|
||||
"build/netstandard2.0/ref/System.Resources.Writer.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Extensions.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Handles.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.InteropServices.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Numerics.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.Serialization.dll",
|
||||
"build/netstandard2.0/ref/System.Runtime.dll",
|
||||
"build/netstandard2.0/ref/System.Security.Claims.dll",
|
||||
"build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll",
|
||||
"build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll",
|
||||
"build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll",
|
||||
"build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll",
|
||||
"build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll",
|
||||
"build/netstandard2.0/ref/System.Security.Principal.dll",
|
||||
"build/netstandard2.0/ref/System.Security.SecureString.dll",
|
||||
"build/netstandard2.0/ref/System.ServiceModel.Web.dll",
|
||||
"build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll",
|
||||
"build/netstandard2.0/ref/System.Text.Encoding.dll",
|
||||
"build/netstandard2.0/ref/System.Text.RegularExpressions.dll",
|
||||
"build/netstandard2.0/ref/System.Threading.Overlapped.dll",
|
||||
"build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll",
|
||||
"build/netstandard2.0/ref/System.Threading.Tasks.dll",
|
||||
"build/netstandard2.0/ref/System.Threading.Thread.dll",
|
||||
"build/netstandard2.0/ref/System.Threading.ThreadPool.dll",
|
||||
"build/netstandard2.0/ref/System.Threading.Timer.dll",
|
||||
"build/netstandard2.0/ref/System.Threading.dll",
|
||||
"build/netstandard2.0/ref/System.Transactions.dll",
|
||||
"build/netstandard2.0/ref/System.ValueTuple.dll",
|
||||
"build/netstandard2.0/ref/System.Web.dll",
|
||||
"build/netstandard2.0/ref/System.Windows.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.Linq.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.ReaderWriter.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.Serialization.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.XDocument.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.XPath.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.XmlDocument.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.XmlSerializer.dll",
|
||||
"build/netstandard2.0/ref/System.Xml.dll",
|
||||
"build/netstandard2.0/ref/System.dll",
|
||||
"build/netstandard2.0/ref/mscorlib.dll",
|
||||
"build/netstandard2.0/ref/netstandard.dll",
|
||||
"build/netstandard2.0/ref/netstandard.xml",
|
||||
"lib/netstandard1.0/_._",
|
||||
"netstandard.library.2.0.0.nupkg.sha512",
|
||||
"netstandard.library.nuspec"
|
||||
]
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
".NETCoreApp,Version=v2.0": [
|
||||
"Microsoft.NETCore.App >= 2.0.0"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
"/home/piotrek/.nuget/packages/": {},
|
||||
"/usr/share/dotnet/sdk/NuGetFallbackFolder": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/FCS.csproj",
|
||||
"projectName": "FCS",
|
||||
"projectPath": "/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/FCS.csproj",
|
||||
"packagesPath": "/home/piotrek/.nuget/packages/",
|
||||
"outputPath": "/home/piotrek/Projects/Studia/C Sharp/Algebra/CRC/DALGLI0/FCS/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"/usr/share/dotnet/sdk/NuGetFallbackFolder"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"/home/piotrek/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"netcoreapp2.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp2.0": {
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp2.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"target": "Package",
|
||||
"version": "[2.0.0, )",
|
||||
"autoReferenced": true
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
179
Program.c
Normal file
179
Program.c
Normal file
@ -0,0 +1,179 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include<unistd.h>
|
||||
using namespace std;
|
||||
|
||||
#define POLY 0x1021
|
||||
string t;
|
||||
int a,e,c;
|
||||
unsigned short EncodeCRT(char *ptr, int count)
|
||||
{
|
||||
int crc;
|
||||
char i;
|
||||
crc = 0xffff;
|
||||
while (--count >= 0)
|
||||
{
|
||||
crc = crc ^ (int) *ptr++ << 8;
|
||||
i = 8;
|
||||
do
|
||||
{
|
||||
if (crc & 0x8000)
|
||||
crc = crc << 1 ^ 0x1021;
|
||||
else
|
||||
crc = crc << 1;
|
||||
} while(--i);
|
||||
}
|
||||
return (crc);
|
||||
}
|
||||
|
||||
string CheckCrc(string message)
|
||||
{
|
||||
string crc="1000000100001";
|
||||
for(int i=0;i<=message.length()-crc.length();)
|
||||
{
|
||||
for(int j=0;j<crc.length();j++)
|
||||
message[i+j]=message[i+j]==crc[j]? '0' : '1';
|
||||
for( ; i<message.length() && message[i]!='1';i++);
|
||||
}
|
||||
for(char i: message.substr(message.length()-crc.length()))
|
||||
if(i!='0')
|
||||
{
|
||||
return "FALSE";
|
||||
}
|
||||
return "TRUE";
|
||||
}
|
||||
const char* hex_char_to_bin(char c)
|
||||
{
|
||||
// TODO handle default / error
|
||||
switch(toupper(c))
|
||||
{
|
||||
case '0': return "0000";
|
||||
case '1': return "0001";
|
||||
case '2': return "0010";
|
||||
case '3': return "0011";
|
||||
case '4': return "0100";
|
||||
case '5': return "0101";
|
||||
case '6': return "0110";
|
||||
case '7': return "0111";
|
||||
case '8': return "1000";
|
||||
case '9': return "1001";
|
||||
case 'A': return "1010";
|
||||
case 'B': return "1011";
|
||||
case 'C': return "1100";
|
||||
case 'D': return "1101";
|
||||
case 'E': return "1110";
|
||||
case 'F': return "1111";
|
||||
}
|
||||
}
|
||||
|
||||
std::string hexToBin(string &hex)
|
||||
{
|
||||
// TODO use a loop from <algorithm> or smth
|
||||
std::string bin;
|
||||
for(unsigned i = 0; i != hex.length(); ++i)
|
||||
bin += hex_char_to_bin(hex[i]);
|
||||
return bin;
|
||||
}
|
||||
void two(string &in)
|
||||
{
|
||||
|
||||
}
|
||||
int main()
|
||||
{
|
||||
char* input;
|
||||
cout<<("1. Zakoduj wiadomosc");
|
||||
cout<<("2. Odkoduj wiadomosc");
|
||||
cout<<("3. Wyjscie");
|
||||
int choice=0;
|
||||
cin>>choice;
|
||||
cin.ignore();
|
||||
if(choice==1)
|
||||
{
|
||||
int cc=0;
|
||||
cout<<("Podaj dlugosc wiadomosci.(ilosc liter ze spacjami wlacznie)");
|
||||
cin>>cc;
|
||||
input=new char[cc];
|
||||
cout<<("Podaj wiadomosc do zaszyfrowania.");
|
||||
cin.ignore();
|
||||
cin.getline(input,cc+1);
|
||||
unsigned short result =EncodeCRT(input,cc);
|
||||
|
||||
for(int i=0;i<cc;i++){
|
||||
printf("%x",input[i]);
|
||||
printf(" ");
|
||||
}
|
||||
printf("%x",result);
|
||||
printf(" ");
|
||||
|
||||
}
|
||||
if(choice==2)
|
||||
{
|
||||
|
||||
string input3;
|
||||
cout<<"Podaj wiadomosc do odkodowania w systemie szesnastkowym, bez spacji.";
|
||||
cin>>input3;
|
||||
string xd;
|
||||
std::stringstream ss;
|
||||
std::string bin;
|
||||
string hex=input3;
|
||||
|
||||
for(unsigned i = 0; i != hex.length(); ++i)
|
||||
{
|
||||
switch(toupper(hex[i]))
|
||||
{
|
||||
case '0': bin+= "0000"; break;
|
||||
case '1': bin+= "0001"; break;
|
||||
case '2': bin+= "0010"; break;
|
||||
case '3': bin+= "0011"; break;
|
||||
case '4': bin+= "0100";break;
|
||||
case '5': bin+= "0101";break;
|
||||
case '6': bin+= "0110";break;
|
||||
case '7': bin+= "0111";break;
|
||||
case '8': bin+= "1000";break;
|
||||
case '9': bin+= "1001";break;
|
||||
case 'A': bin+= "1010";break;
|
||||
case 'B': bin+= "1011";break;
|
||||
case 'C': bin+= "1100";break;
|
||||
case 'D': bin+= "1101";break;
|
||||
case 'E': bin+= "1110";break;
|
||||
case 'F': bin+= "1111";break;
|
||||
}
|
||||
}
|
||||
|
||||
string crc="1000000100001";
|
||||
string message=bin;
|
||||
int l=message.length();
|
||||
int cl=crc.length();
|
||||
int ii=0;
|
||||
int k=0;
|
||||
l=message.length();
|
||||
while(true)
|
||||
{
|
||||
if(ii>l-cl) break;
|
||||
for(int j=0;j<cl;j++)
|
||||
{
|
||||
message[ii+j]=message[ii+j]==crc[j]? '0' : '1';
|
||||
}
|
||||
while(ii<l && message[ii]!='1')
|
||||
{
|
||||
ii++;
|
||||
}
|
||||
}
|
||||
string x=message.substr(message.length()-crc.length());
|
||||
cout<<x;
|
||||
for(char i: x)
|
||||
if(i=='1')
|
||||
{
|
||||
cout<<"FALSE";
|
||||
return 0;
|
||||
}
|
||||
cout<<"TRUE";
|
||||
return 0;
|
||||
}
|
||||
if(choice==3)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
@ -1 +1 @@
|
||||
Aplikacja konsolowa napisana w jezyku C#. Aby go odpalic potrzebne IDE lub z poziomu konsoli w systemie windows z zainstalowanym .NET Frameworkiem wykonac polecenie: dotnet msbuild - zwroci sciezke skompilowanego pliku exe, ktory mozna odpalic.
|
||||
Aplikacja konsolowa napisana w jezyku C++. Aby odpalic nalezy skompilowac komenda g++ Program.c.
|
||||
|
Loading…
Reference in New Issue
Block a user