Skip to content

Commit 6756ab3

Browse files
authored
Merge pull request #1 from godsharp/dev
v1.0 preview
2 parents 46cad40 + 09f208d commit 6756ab3

32 files changed

Lines changed: 1614 additions & 0 deletions

GodSharp.Encryption.sln

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26228.12
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{684FCB96-A6FC-45B4-8BE7-13C03D1F464C}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{B76AC3AF-1E8E-4849-9943-67DF77651A6F}"
9+
EndProject
10+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "GodSharp.Shared", "src\GodSharp.Shared\GodSharp.Shared.shproj", "{8F6E52F3-DB35-40B8-867A-AD312791BB63}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GodSharp.Encryption", "src\GodSharp.Encryption\GodSharp.Encryption.csproj", "{778633B1-7023-4975-8028-EB8645CD9BA9}"
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{3889C1B2-746D-40F8-90F3-5F1E819DBFBB}"
15+
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GodSharp.Encryption.Tests", "test\GodSharp.Encryption.Tests\GodSharp.Encryption.Tests.csproj", "{7DC293CD-50BB-4AAD-AF6E-9CB4DA3A2C8B}"
17+
EndProject
18+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CA928813-3446-4345-9A90-F4CD5AA4D0CF}"
19+
ProjectSection(SolutionItems) = preProject
20+
.gitignore = .gitignore
21+
LICENSE = LICENSE
22+
README.md = README.md
23+
EndProjectSection
24+
EndProject
25+
Global
26+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
27+
src\GodSharp.Shared\GodSharp.Shared.projitems*{8f6e52f3-db35-40b8-867a-ad312791bb63}*SharedItemsImports = 13
28+
EndGlobalSection
29+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
30+
Debug|Any CPU = Debug|Any CPU
31+
Release|Any CPU = Release|Any CPU
32+
EndGlobalSection
33+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
34+
{778633B1-7023-4975-8028-EB8645CD9BA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{778633B1-7023-4975-8028-EB8645CD9BA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{778633B1-7023-4975-8028-EB8645CD9BA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
{778633B1-7023-4975-8028-EB8645CD9BA9}.Release|Any CPU.Build.0 = Release|Any CPU
38+
{7DC293CD-50BB-4AAD-AF6E-9CB4DA3A2C8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{7DC293CD-50BB-4AAD-AF6E-9CB4DA3A2C8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{7DC293CD-50BB-4AAD-AF6E-9CB4DA3A2C8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{7DC293CD-50BB-4AAD-AF6E-9CB4DA3A2C8B}.Release|Any CPU.Build.0 = Release|Any CPU
42+
EndGlobalSection
43+
GlobalSection(SolutionProperties) = preSolution
44+
HideSolutionNode = FALSE
45+
EndGlobalSection
46+
GlobalSection(NestedProjects) = preSolution
47+
{8F6E52F3-DB35-40B8-867A-AD312791BB63} = {3889C1B2-746D-40F8-90F3-5F1E819DBFBB}
48+
{778633B1-7023-4975-8028-EB8645CD9BA9} = {684FCB96-A6FC-45B4-8BE7-13C03D1F464C}
49+
{3889C1B2-746D-40F8-90F3-5F1E819DBFBB} = {684FCB96-A6FC-45B4-8BE7-13C03D1F464C}
50+
{7DC293CD-50BB-4AAD-AF6E-9CB4DA3A2C8B} = {B76AC3AF-1E8E-4849-9943-67DF77651A6F}
51+
EndGlobalSection
52+
EndGlobal

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,57 @@
11
# GodSharp.Encryption
22
Common encryption method for .NET.
3+
4+
# Hash Algorithm
5+
6+
- MD5
7+
8+
- SHA
9+
- SHA1
10+
- SHA256
11+
- SHA384
12+
- SHA512
13+
14+
15+
- HMAC
16+
- HMACMD5
17+
- HMACRIPEMD160
18+
- HMACSHA1
19+
- HMACSHA256
20+
- HMACSHA384
21+
- HMACSHA512
22+
23+
## Method
24+
25+
- Encrypt()
26+
27+
28+
29+
# Symmetric Encryption Algorithm
30+
31+
- AES
32+
33+
- DES
34+
35+
- 3DES
36+
37+
## Method
38+
39+
- Encrypt()
40+
41+
# Asymmetric Encryption Algorithm
42+
43+
- RSA
44+
45+
## Method
46+
47+
- Encrypt()
48+
49+
- Decrypt()
50+
51+
# Base64
52+
53+
## Method
54+
55+
- Encrypt()
56+
57+
- Decrypt()
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{778633B1-7023-4975-8028-EB8645CD9BA9}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>GodSharp</RootNamespace>
11+
<AssemblyName>GodSharp.Encryption</AssemblyName>
12+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<DebugType>pdbonly</DebugType>
27+
<Optimize>true</Optimize>
28+
<OutputPath>bin\Release\</OutputPath>
29+
<DefineConstants>TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<ItemGroup>
34+
<Reference Include="System" />
35+
<Reference Include="System.Core" />
36+
<Reference Include="System.Data" />
37+
</ItemGroup>
38+
<ItemGroup>
39+
<Compile Include="..\GodSharp.Shared\Encryption\Asymmetric\RSA.cs">
40+
<Link>Asymmetric\RSA.cs</Link>
41+
</Compile>
42+
<Compile Include="..\GodSharp.Shared\Encryption\Base64.cs">
43+
<Link>Base64.cs</Link>
44+
</Compile>
45+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\HMAC\HMAC.cs">
46+
<Link>Hash\HMAC\HMAC.cs</Link>
47+
</Compile>
48+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\HMAC\HMACMD5.cs">
49+
<Link>Hash\HMAC\HMACMD5.cs</Link>
50+
</Compile>
51+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\HMAC\HMACRIPEMD160.cs">
52+
<Link>Hash\HMAC\HMACRIPEMD160.cs</Link>
53+
</Compile>
54+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\HMAC\HMACSHA1.cs">
55+
<Link>Hash\HMAC\HMACSHA1.cs</Link>
56+
</Compile>
57+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\HMAC\HMACSHA256.cs">
58+
<Link>Hash\HMAC\HMACSHA256.cs</Link>
59+
</Compile>
60+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\HMAC\HMACSHA384.cs">
61+
<Link>Hash\HMAC\HMACSHA384.cs</Link>
62+
</Compile>
63+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\HMAC\HMACSHA512.cs">
64+
<Link>Hash\HMAC\HMACSHA512.cs</Link>
65+
</Compile>
66+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\MD5.cs">
67+
<Link>Hash\MD5.cs</Link>
68+
</Compile>
69+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\SHA\SHA.cs">
70+
<Link>Hash\SHA\SHA.cs</Link>
71+
</Compile>
72+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\SHA\SHA1.cs">
73+
<Link>Hash\SHA\SHA1.cs</Link>
74+
</Compile>
75+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\SHA\SHA256.cs">
76+
<Link>Hash\SHA\SHA256.cs</Link>
77+
</Compile>
78+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\SHA\SHA384.cs">
79+
<Link>Hash\SHA\SHA384.cs</Link>
80+
</Compile>
81+
<Compile Include="..\GodSharp.Shared\Encryption\Hash\SHA\SHA512.cs">
82+
<Link>Hash\SHA\SHA512.cs</Link>
83+
</Compile>
84+
<Compile Include="..\GodSharp.Shared\Encryption\Symmetric\AES.cs">
85+
<Link>Symmetric\AES.cs</Link>
86+
</Compile>
87+
<Compile Include="..\GodSharp.Shared\Encryption\Symmetric\DES.cs">
88+
<Link>Symmetric\DES.cs</Link>
89+
</Compile>
90+
<Compile Include="..\GodSharp.Shared\Encryption\Symmetric\TripleDES.cs">
91+
<Link>Symmetric\TripleDES.cs</Link>
92+
</Compile>
93+
<Compile Include="..\GodSharp.Shared\Encryption\Symmetric\XES.cs">
94+
<Link>Symmetric\XES.cs</Link>
95+
</Compile>
96+
<Compile Include="..\GodSharp.Shared\Encryption\Util\Util.cs">
97+
<Link>Util\Util.cs</Link>
98+
</Compile>
99+
<Compile Include="Properties\AssemblyInfo.cs" />
100+
</ItemGroup>
101+
<ItemGroup />
102+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
103+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("GodSharp.Cryptography")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("GodSharp.Cryptography")]
13+
[assembly: AssemblyCopyright("Copyright © 2017")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("778633b1-7023-4975-8028-eb8645cd9ba9")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)