aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-05 10:57:47 -0500
committerMichael <[email protected]>2017-02-05 10:57:47 -0500
commitae7553fa95bd78178c02fac11cf33ea8e0d69cfb (patch)
tree13d673bc3ea0ad27f9c4cc1756f0a79b9773659e /ShiftOS.Server
parent19b13528f6e4ecbef8aaca92d6bdcf7d23d42838 (diff)
downloadshiftos_thereturn-ae7553fa95bd78178c02fac11cf33ea8e0d69cfb.tar.gz
shiftos_thereturn-ae7553fa95bd78178c02fac11cf33ea8e0d69cfb.tar.bz2
shiftos_thereturn-ae7553fa95bd78178c02fac11cf33ea8e0d69cfb.zip
Stop hashing passwords - we encrypt saves now
Diffstat (limited to 'ShiftOS.Server')
-rw-r--r--ShiftOS.Server/Program.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs
index 192b497..4979546 100644
--- a/ShiftOS.Server/Program.cs
+++ b/ShiftOS.Server/Program.cs
@@ -105,14 +105,7 @@ namespace ShiftOS.Server
/// <param name="args">The command-line arguments.</param>
public static void Main(string[] args)
{
- foreach(var save in Directory.GetFiles("saves"))
- {
- var save_obj = JsonConvert.DeserializeObject<Save>(File.ReadAllText(save));
- if (save_obj.PasswordHashed == false)
- save_obj.Password = Encryption.Encrypt(save_obj.Password);
- File.WriteAllText(save, JsonConvert.SerializeObject(save_obj, Formatting.Indented));
- }
-
+
if (!Directory.Exists("saves"))
{
Directory.CreateDirectory("saves");