fix prev commit
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
namespace OwnChar
|
||||
using Pilz.Cryptography;
|
||||
|
||||
namespace OwnChar
|
||||
{
|
||||
public static class Utils
|
||||
{
|
||||
public static string HashPassword(string username, string password)
|
||||
public static string HashPassword(string username, SecureString password)
|
||||
{
|
||||
// TODO: Implement a good hasing algorythmus (like MD5) BEFORE going productive!
|
||||
return (username + ":" + password).GetHashCode().ToString();
|
||||
|
||||
Reference in New Issue
Block a user