diff --git a/.gitignore b/.gitignore
index 7a7b1a8..8bd00d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-SecireCore/bin
+SecureCore/bin
+SecureCore/obj
diff --git a/.vs/SecureCore/v16/.suo b/.vs/SecureCore/v16/.suo
index 0970f1b..6f4f02f 100644
Binary files a/.vs/SecureCore/v16/.suo and b/.vs/SecureCore/v16/.suo differ
diff --git a/SecureCore/Controllers/EmployeeController.cs b/SecureCore/Controllers/EmployeeController.cs
index 031b467..52396be 100644
--- a/SecureCore/Controllers/EmployeeController.cs
+++ b/SecureCore/Controllers/EmployeeController.cs
@@ -3,8 +3,10 @@ using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Threading.Tasks;
+using System.Text;
using SecureCore.Services;
+using System.Security.Cryptography;
+using Microsoft.AspNetCore.Cryptography.KeyDerivation;
namespace SecureCore.Controllers
{
@@ -31,5 +33,59 @@ namespace SecureCore.Controllers
{
return Ok(DataService.GetById(id));
}
+
+ [HttpPost("login")]
+ [AcceptVerbs("POST")]
+ public IActionResult Login(LoginInfo info)
+ {
+ var hash = Auth.HashPassword(info.Password, out string salt);
+ return Ok($"Session Key: {Auth.CreateSessionId()}{Environment.NewLine}Password Hash: {hash}{Environment.NewLine}Salt: {salt}{Environment.NewLine}");
+ }
+ }
+
+ public class LoginInfo
+ {
+ public string UserName { get; set; }
+ public string Password { get; set; }
+ }
+
+ public static class Auth
+ {
+ public static string CreateSessionId()
+ {
+ var sessionId = new byte[32];
+
+ GetRandomBytes(ref sessionId);
+
+ return ConvertToHex(sessionId);
+ }
+
+ public static string HashPassword(string password, out string saltString)
+ {
+ //Generate a 128 bit salt
+ var salt = new byte[128 / 8];
+
+ GetRandomBytes(ref salt);
+
+ saltString = ConvertToHex(salt);
+
+ return Convert.ToBase64String(KeyDerivation.Pbkdf2(password, salt, KeyDerivationPrf.HMACSHA512, 50000, 512 / 8));
+ }
+
+ private static string ConvertToHex(byte[] bytes)
+ {
+ var stringBuilder = new StringBuilder();
+
+ foreach (var b in bytes)
+ stringBuilder.AppendFormat("{0:x2}", b);
+
+ return stringBuilder.ToString();
+ }
+
+ private static void GetRandomBytes(ref byte[] bytes)
+ {
+ using(var rng = RandomNumberGenerator.Create())
+ rng.GetBytes(bytes);
+ }
}
}
diff --git a/SecureCore/SecureCore.csproj b/SecureCore/SecureCore.csproj
index 72915e8..e8c0a2d 100644
--- a/SecureCore/SecureCore.csproj
+++ b/SecureCore/SecureCore.csproj
@@ -5,5 +5,9 @@
e3dff1d0-8e29-4bc2-8020-8999a38530f3
+
+
+
+
diff --git a/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.dll b/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.dll
index 2c74b82..0591f08 100644
Binary files a/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.dll and b/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.dll differ
diff --git a/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.pdb b/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.pdb
index 2a126c8..3258303 100644
Binary files a/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.pdb and b/SecureCore/bin/Debug/netcoreapp3.1/SecureCore.pdb differ
diff --git a/SecureCore/bin/Release/netcoreapp3.1/SecureCore.deps.json b/SecureCore/bin/Release/netcoreapp3.1/SecureCore.deps.json
index 4025589..f8b40fc 100644
--- a/SecureCore/bin/Release/netcoreapp3.1/SecureCore.deps.json
+++ b/SecureCore/bin/Release/netcoreapp3.1/SecureCore.deps.json
@@ -24,6 +24,7 @@
".NETCoreApp,Version=v3.1": {
"SecureCore/1.0.0": {
"dependencies": {
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation": "5.0.1",
"Microsoft.AspNetCore.Antiforgery": "3.1.0.0",
"Microsoft.AspNetCore.Authentication.Abstractions": "3.1.0.0",
"Microsoft.AspNetCore.Authentication.Cookies": "3.1.0.0",
@@ -40,8 +41,6 @@
"Microsoft.AspNetCore.Connections.Abstractions": "3.1.0.0",
"Microsoft.AspNetCore.CookiePolicy": "3.1.0.0",
"Microsoft.AspNetCore.Cors": "3.1.0.0",
- "Microsoft.AspNetCore.Cryptography.Internal": "3.1.0.0",
- "Microsoft.AspNetCore.Cryptography.KeyDerivation": "3.1.0.0",
"Microsoft.AspNetCore.DataProtection.Abstractions": "3.1.0.0",
"Microsoft.AspNetCore.DataProtection": "3.1.0.0",
"Microsoft.AspNetCore.DataProtection.Extensions": "3.1.0.0",
@@ -314,6 +313,31 @@
"SecureCore.dll": {}
}
},
+ "Microsoft.AspNetCore.Cryptography.Internal/5.0.1": {
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.dll": {
+ "assemblyVersion": "5.0.0.0",
+ "fileVersion": "5.0.120.60107"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.dll": {}
+ }
+ },
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation/5.0.1": {
+ "dependencies": {
+ "Microsoft.AspNetCore.Cryptography.Internal": "5.0.1"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {
+ "assemblyVersion": "5.0.0.0",
+ "fileVersion": "5.0.120.60107"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {}
+ }
+ },
"Microsoft.AspNetCore.Antiforgery/3.1.0.0": {
"compile": {
"Microsoft.AspNetCore.Antiforgery.dll": {}
@@ -410,18 +434,6 @@
},
"compileOnly": true
},
- "Microsoft.AspNetCore.Cryptography.Internal/3.1.0.0": {
- "compile": {
- "Microsoft.AspNetCore.Cryptography.Internal.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.AspNetCore.Cryptography.KeyDerivation/3.1.0.0": {
- "compile": {
- "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {}
- },
- "compileOnly": true
- },
"Microsoft.AspNetCore.DataProtection.Abstractions/3.1.0.0": {
"compile": {
"Microsoft.AspNetCore.DataProtection.Abstractions.dll": {}
@@ -2014,6 +2026,20 @@
"serviceable": false,
"sha512": ""
},
+ "Microsoft.AspNetCore.Cryptography.Internal/5.0.1": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-VGfj77RBkyWpPxvX6oSghE3DPObvg171HRdwr/t3aJQ9Y5cgaZE8BUNLhHZ0yBFa218r7e9Qou+DLGfRtve4CQ==",
+ "path": "microsoft.aspnetcore.cryptography.internal/5.0.1",
+ "hashPath": "microsoft.aspnetcore.cryptography.internal.5.0.1.nupkg.sha512"
+ },
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation/5.0.1": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-kYiQ5AZMKVIB+28+ImC6GihJTSh2Sr6iofiYtsOOnCbgCmNBljH4n+r8Qfocxv78xeeby5lwZorq05OvriDbOQ==",
+ "path": "microsoft.aspnetcore.cryptography.keyderivation/5.0.1",
+ "hashPath": "microsoft.aspnetcore.cryptography.keyderivation.5.0.1.nupkg.sha512"
+ },
"Microsoft.AspNetCore.Antiforgery/3.1.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -2094,16 +2120,6 @@
"serviceable": false,
"sha512": ""
},
- "Microsoft.AspNetCore.Cryptography.Internal/3.1.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.AspNetCore.Cryptography.KeyDerivation/3.1.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.AspNetCore.DataProtection.Abstractions/3.1.0.0": {
"type": "referenceassembly",
"serviceable": false,
diff --git a/SecureCore/bin/Release/netcoreapp3.1/SecureCore.dll b/SecureCore/bin/Release/netcoreapp3.1/SecureCore.dll
index 18921b6..cfd66a3 100644
Binary files a/SecureCore/bin/Release/netcoreapp3.1/SecureCore.dll and b/SecureCore/bin/Release/netcoreapp3.1/SecureCore.dll differ
diff --git a/SecureCore/bin/Release/netcoreapp3.1/SecureCore.pdb b/SecureCore/bin/Release/netcoreapp3.1/SecureCore.pdb
index 09f686f..3666d8c 100644
Binary files a/SecureCore/bin/Release/netcoreapp3.1/SecureCore.pdb and b/SecureCore/bin/Release/netcoreapp3.1/SecureCore.pdb differ
diff --git a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.assets.cache b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.assets.cache
index 661609a..512a3a8 100644
Binary files a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.assets.cache and b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.assets.cache differ
diff --git a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache
index 626c031..fc42eeb 100644
Binary files a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache and b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache differ
diff --git a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.dll b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.dll
index 2c74b82..0591f08 100644
Binary files a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.dll and b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.dll differ
diff --git a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.pdb b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.pdb
index 2a126c8..3258303 100644
Binary files a/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.pdb and b/SecureCore/obj/Debug/netcoreapp3.1/SecureCore.pdb differ
diff --git a/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.deps.json b/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.deps.json
index 4025589..f8b40fc 100644
--- a/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.deps.json
+++ b/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.deps.json
@@ -24,6 +24,7 @@
".NETCoreApp,Version=v3.1": {
"SecureCore/1.0.0": {
"dependencies": {
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation": "5.0.1",
"Microsoft.AspNetCore.Antiforgery": "3.1.0.0",
"Microsoft.AspNetCore.Authentication.Abstractions": "3.1.0.0",
"Microsoft.AspNetCore.Authentication.Cookies": "3.1.0.0",
@@ -40,8 +41,6 @@
"Microsoft.AspNetCore.Connections.Abstractions": "3.1.0.0",
"Microsoft.AspNetCore.CookiePolicy": "3.1.0.0",
"Microsoft.AspNetCore.Cors": "3.1.0.0",
- "Microsoft.AspNetCore.Cryptography.Internal": "3.1.0.0",
- "Microsoft.AspNetCore.Cryptography.KeyDerivation": "3.1.0.0",
"Microsoft.AspNetCore.DataProtection.Abstractions": "3.1.0.0",
"Microsoft.AspNetCore.DataProtection": "3.1.0.0",
"Microsoft.AspNetCore.DataProtection.Extensions": "3.1.0.0",
@@ -314,6 +313,31 @@
"SecureCore.dll": {}
}
},
+ "Microsoft.AspNetCore.Cryptography.Internal/5.0.1": {
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.dll": {
+ "assemblyVersion": "5.0.0.0",
+ "fileVersion": "5.0.120.60107"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.dll": {}
+ }
+ },
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation/5.0.1": {
+ "dependencies": {
+ "Microsoft.AspNetCore.Cryptography.Internal": "5.0.1"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {
+ "assemblyVersion": "5.0.0.0",
+ "fileVersion": "5.0.120.60107"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {}
+ }
+ },
"Microsoft.AspNetCore.Antiforgery/3.1.0.0": {
"compile": {
"Microsoft.AspNetCore.Antiforgery.dll": {}
@@ -410,18 +434,6 @@
},
"compileOnly": true
},
- "Microsoft.AspNetCore.Cryptography.Internal/3.1.0.0": {
- "compile": {
- "Microsoft.AspNetCore.Cryptography.Internal.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.AspNetCore.Cryptography.KeyDerivation/3.1.0.0": {
- "compile": {
- "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {}
- },
- "compileOnly": true
- },
"Microsoft.AspNetCore.DataProtection.Abstractions/3.1.0.0": {
"compile": {
"Microsoft.AspNetCore.DataProtection.Abstractions.dll": {}
@@ -2014,6 +2026,20 @@
"serviceable": false,
"sha512": ""
},
+ "Microsoft.AspNetCore.Cryptography.Internal/5.0.1": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-VGfj77RBkyWpPxvX6oSghE3DPObvg171HRdwr/t3aJQ9Y5cgaZE8BUNLhHZ0yBFa218r7e9Qou+DLGfRtve4CQ==",
+ "path": "microsoft.aspnetcore.cryptography.internal/5.0.1",
+ "hashPath": "microsoft.aspnetcore.cryptography.internal.5.0.1.nupkg.sha512"
+ },
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation/5.0.1": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-kYiQ5AZMKVIB+28+ImC6GihJTSh2Sr6iofiYtsOOnCbgCmNBljH4n+r8Qfocxv78xeeby5lwZorq05OvriDbOQ==",
+ "path": "microsoft.aspnetcore.cryptography.keyderivation/5.0.1",
+ "hashPath": "microsoft.aspnetcore.cryptography.keyderivation.5.0.1.nupkg.sha512"
+ },
"Microsoft.AspNetCore.Antiforgery/3.1.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -2094,16 +2120,6 @@
"serviceable": false,
"sha512": ""
},
- "Microsoft.AspNetCore.Cryptography.Internal/3.1.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.AspNetCore.Cryptography.KeyDerivation/3.1.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.AspNetCore.DataProtection.Abstractions/3.1.0.0": {
"type": "referenceassembly",
"serviceable": false,
diff --git a/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.dll b/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.dll
index 18921b6..cfd66a3 100644
Binary files a/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.dll and b/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.dll differ
diff --git a/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.pdb b/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.pdb
index 09f686f..3666d8c 100644
Binary files a/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.pdb and b/SecureCore/obj/Release/netcoreapp3.1/PubTmp/Out/SecureCore.pdb differ
diff --git a/SecureCore/obj/Release/netcoreapp3.1/PublishOutputs.d9e5d91e5f.txt b/SecureCore/obj/Release/netcoreapp3.1/PublishOutputs.d9e5d91e5f.txt
index ea44fab..9e77dec 100644
--- a/SecureCore/obj/Release/netcoreapp3.1/PublishOutputs.d9e5d91e5f.txt
+++ b/SecureCore/obj/Release/netcoreapp3.1/PublishOutputs.d9e5d91e5f.txt
@@ -5,3 +5,5 @@ C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubT
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.deps.json
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.runtimeconfig.json
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.pdb
+C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\Microsoft.AspNetCore.Cryptography.Internal.dll
+C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\Microsoft.AspNetCore.Cryptography.KeyDerivation.dll
diff --git a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.assets.cache b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.assets.cache
index 6d3ecd8..c5e483d 100644
Binary files a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.assets.cache and b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.assets.cache differ
diff --git a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.CoreCompileInputs.cache b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.CoreCompileInputs.cache
index 1c2d1c7..27b9592 100644
--- a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.CoreCompileInputs.cache
+++ b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-707cc6b556c13148aa191cb544faa8d46927ce06
+bcb5d7715e4b62750b8707cb5830a8376ef8a29b
diff --git a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.FileListAbsolute.txt b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.FileListAbsolute.txt
index c5790eb..bf77301 100644
--- a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.FileListAbsolute.txt
+++ b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csproj.FileListAbsolute.txt
@@ -18,3 +18,6 @@ C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\Secu
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.dll
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.pdb
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.genruntimeconfig.cache
+C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\Microsoft.AspNetCore.Cryptography.Internal.dll
+C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\Microsoft.AspNetCore.Cryptography.KeyDerivation.dll
+C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.csproj.CopyComplete
diff --git a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache
index 38dffa9..626c031 100644
Binary files a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache and b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.csprojAssemblyReference.cache differ
diff --git a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.dll b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.dll
index 18921b6..cfd66a3 100644
Binary files a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.dll and b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.dll differ
diff --git a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.pdb b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.pdb
index 09f686f..3666d8c 100644
Binary files a/SecureCore/obj/Release/netcoreapp3.1/SecureCore.pdb and b/SecureCore/obj/Release/netcoreapp3.1/SecureCore.pdb differ
diff --git a/SecureCore/obj/SecureCore.csproj.nuget.dgspec.json b/SecureCore/obj/SecureCore.csproj.nuget.dgspec.json
index 3da99d3..45c82f1 100644
--- a/SecureCore/obj/SecureCore.csproj.nuget.dgspec.json
+++ b/SecureCore/obj/SecureCore.csproj.nuget.dgspec.json
@@ -39,6 +39,12 @@
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
+ "dependencies": {
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation": {
+ "target": "Package",
+ "version": "[5.0.1, )"
+ }
+ },
"imports": [
"net461",
"net462",
diff --git a/SecureCore/obj/project.assets.json b/SecureCore/obj/project.assets.json
index cb31a7e..b22af0d 100644
--- a/SecureCore/obj/project.assets.json
+++ b/SecureCore/obj/project.assets.json
@@ -1,11 +1,74 @@
{
"version": 3,
"targets": {
- ".NETCoreApp,Version=v3.1": {}
+ ".NETCoreApp,Version=v3.1": {
+ "Microsoft.AspNetCore.Cryptography.Internal/5.0.1": {
+ "type": "package",
+ "compile": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.dll": {}
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.dll": {}
+ }
+ },
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation/5.0.1": {
+ "type": "package",
+ "dependencies": {
+ "Microsoft.AspNetCore.Cryptography.Internal": "5.0.1"
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {}
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": {}
+ }
+ }
+ }
+ },
+ "libraries": {
+ "Microsoft.AspNetCore.Cryptography.Internal/5.0.1": {
+ "sha512": "VGfj77RBkyWpPxvX6oSghE3DPObvg171HRdwr/t3aJQ9Y5cgaZE8BUNLhHZ0yBFa218r7e9Qou+DLGfRtve4CQ==",
+ "type": "package",
+ "path": "microsoft.aspnetcore.cryptography.internal/5.0.1",
+ "files": [
+ ".nupkg.metadata",
+ ".signature.p7s",
+ "Icon.png",
+ "THIRD-PARTY-NOTICES.TXT",
+ "lib/net461/Microsoft.AspNetCore.Cryptography.Internal.dll",
+ "lib/net461/Microsoft.AspNetCore.Cryptography.Internal.xml",
+ "lib/net5.0/Microsoft.AspNetCore.Cryptography.Internal.dll",
+ "lib/net5.0/Microsoft.AspNetCore.Cryptography.Internal.xml",
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.dll",
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.Internal.xml",
+ "microsoft.aspnetcore.cryptography.internal.5.0.1.nupkg.sha512",
+ "microsoft.aspnetcore.cryptography.internal.nuspec"
+ ]
+ },
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation/5.0.1": {
+ "sha512": "kYiQ5AZMKVIB+28+ImC6GihJTSh2Sr6iofiYtsOOnCbgCmNBljH4n+r8Qfocxv78xeeby5lwZorq05OvriDbOQ==",
+ "type": "package",
+ "path": "microsoft.aspnetcore.cryptography.keyderivation/5.0.1",
+ "files": [
+ ".nupkg.metadata",
+ ".signature.p7s",
+ "Icon.png",
+ "THIRD-PARTY-NOTICES.TXT",
+ "lib/net461/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll",
+ "lib/net461/Microsoft.AspNetCore.Cryptography.KeyDerivation.xml",
+ "lib/net5.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll",
+ "lib/net5.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.xml",
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll",
+ "lib/netstandard2.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.xml",
+ "microsoft.aspnetcore.cryptography.keyderivation.5.0.1.nupkg.sha512",
+ "microsoft.aspnetcore.cryptography.keyderivation.nuspec"
+ ]
+ }
},
- "libraries": {},
"projectFileDependencyGroups": {
- ".NETCoreApp,Version=v3.1": []
+ ".NETCoreApp,Version=v3.1": [
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation >= 5.0.1"
+ ]
},
"packageFolders": {
"C:\\Users\\admin\\.nuget\\packages\\": {}
@@ -45,6 +108,12 @@
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
+ "dependencies": {
+ "Microsoft.AspNetCore.Cryptography.KeyDerivation": {
+ "target": "Package",
+ "version": "[5.0.1, )"
+ }
+ },
"imports": [
"net461",
"net462",
diff --git a/SecureCore/obj/project.nuget.cache b/SecureCore/obj/project.nuget.cache
index da7c755..75546cf 100644
--- a/SecureCore/obj/project.nuget.cache
+++ b/SecureCore/obj/project.nuget.cache
@@ -1,8 +1,11 @@
{
"version": 2,
- "dgSpecHash": "9FQAdWJG89/k6D0GaFBO0LTdH1bJLNLf/t03TJ8KG7JJrHo16V/4RK3ghJk2Sms/7C9fpATlx8iJQ/EL/gOZrA==",
+ "dgSpecHash": "kVPmXtAIxW3sLl1aKG4wTc94WxVgDpVrh3dL9khCp0uQd+jCawAmhvkjc5Cx7PmrwWNEqF+HMEi9ePYVrb9lfA==",
"success": true,
"projectFilePath": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj",
- "expectedPackageFiles": [],
+ "expectedPackageFiles": [
+ "C:\\Users\\admin\\.nuget\\packages\\microsoft.aspnetcore.cryptography.internal\\5.0.1\\microsoft.aspnetcore.cryptography.internal.5.0.1.nupkg.sha512",
+ "C:\\Users\\admin\\.nuget\\packages\\microsoft.aspnetcore.cryptography.keyderivation\\5.0.1\\microsoft.aspnetcore.cryptography.keyderivation.5.0.1.nupkg.sha512"
+ ],
"logs": []
}
\ No newline at end of file