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