|
@@ -0,0 +1,21 @@
|
|
|
+using System;
|
|
|
+using Newtonsoft.Json;
|
|
|
+using System.Globalization;
|
|
|
+using System.Text;
|
|
|
+using System.IO;
|
|
|
+
|
|
|
+namespace WingServerCommon.Utilities
|
|
|
+{
|
|
|
+ public class OldSecurity
|
|
|
+ {
|
|
|
+ public static string Salt(string input)
|
|
|
+ {
|
|
|
+ return $"V1N{input}N0";
|
|
|
+ }
|
|
|
+
|
|
|
+ public static string Hash(string input)
|
|
|
+ {
|
|
|
+ return MD5.GetHashString(input, Encoding.Unicode).ToLower();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|