13 lines
335 B
C#
13 lines
335 B
C#
using Pilz.Cryptography;
|
|
|
|
namespace OwnChar;
|
|
|
|
public static class OwnCharUtils
|
|
{
|
|
public static string HashPassword(string username, SecureString password)
|
|
{
|
|
// TODO: Implement a good hashing algorythmus (like MD5) BEFORE going productive.
|
|
return (username + ":" + password).GetHashCode().ToString();
|
|
}
|
|
}
|