From ae7553fa95bd78178c02fac11cf33ea8e0d69cfb Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 5 Feb 2017 10:57:47 -0500 Subject: Stop hashing passwords - we encrypt saves now --- ShiftOS.Server/Program.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'ShiftOS.Server') 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 /// The command-line arguments. public static void Main(string[] args) { - foreach(var save in Directory.GetFiles("saves")) - { - var save_obj = JsonConvert.DeserializeObject(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"); -- cgit v1.2.3