aboutsummaryrefslogtreecommitdiff
path: root/src/Common/DevHive.Common.Models/Misc
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-02-13 16:20:18 +0200
committertranstrike <transtrike@gmail.com>2021-02-13 16:20:18 +0200
commit98e17766b203734a1817eed94338e2d25f4395f7 (patch)
tree1266385a56cba56fd55c7faf661dd844bbdf5705 /src/Common/DevHive.Common.Models/Misc
parent1ab34accfda22ee3ce5c7700e3b97ff3e932d649 (diff)
downloadDevHive-98e17766b203734a1817eed94338e2d25f4395f7.tar
DevHive-98e17766b203734a1817eed94338e2d25f4395f7.tar.gz
DevHive-98e17766b203734a1817eed94338e2d25f4395f7.zip
Project Restructure P.1
Diffstat (limited to 'src/Common/DevHive.Common.Models/Misc')
-rw-r--r--src/Common/DevHive.Common.Models/Misc/IdModel.cs9
-rw-r--r--src/Common/DevHive.Common.Models/Misc/PasswordModifications.cs13
-rw-r--r--src/Common/DevHive.Common.Models/Misc/Patch.cs9
3 files changed, 31 insertions, 0 deletions
diff --git a/src/Common/DevHive.Common.Models/Misc/IdModel.cs b/src/Common/DevHive.Common.Models/Misc/IdModel.cs
new file mode 100644
index 0000000..a5c7b65
--- /dev/null
+++ b/src/Common/DevHive.Common.Models/Misc/IdModel.cs
@@ -0,0 +1,9 @@
+using System;
+
+namespace DevHive.Common.Models.Misc
+{
+ public class IdModel
+ {
+ public Guid Id { get; set; }
+ }
+} \ No newline at end of file
diff --git a/src/Common/DevHive.Common.Models/Misc/PasswordModifications.cs b/src/Common/DevHive.Common.Models/Misc/PasswordModifications.cs
new file mode 100644
index 0000000..f10a334
--- /dev/null
+++ b/src/Common/DevHive.Common.Models/Misc/PasswordModifications.cs
@@ -0,0 +1,13 @@
+using System.Security.Cryptography;
+using System.Text;
+
+namespace DevHive.Common.Models.Misc
+{
+ public static class PasswordModifications
+ {
+ public static string GeneratePasswordHash(string password)
+ {
+ return string.Join(string.Empty, SHA512.HashData(Encoding.ASCII.GetBytes(password)));
+ }
+ }
+}
diff --git a/src/Common/DevHive.Common.Models/Misc/Patch.cs b/src/Common/DevHive.Common.Models/Misc/Patch.cs
new file mode 100644
index 0000000..ea5a4f1
--- /dev/null
+++ b/src/Common/DevHive.Common.Models/Misc/Patch.cs
@@ -0,0 +1,9 @@
+namespace DevHive.Common.Models.Misc
+{
+ public class Patch
+ {
+ public string Name { get; set; }
+ public object Value { get; set; }
+ public string Action { get; set; }
+ }
+}