Files
Library/OwnChar/OwnCharUtils.cs
2024-07-18 14:44:44 +02:00

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();
}
}