From 5c584a796a6437f03e457ccc2f9d7bdc4e3ef838 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 2 Sep 2014 17:14:50 +0000 Subject: [PATCH] PANIC FIX bcrypt crashes --- Logic/Security/Authentication.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Logic/Security/Authentication.cs b/Logic/Security/Authentication.cs index e70e5216..68a2dd05 100644 --- a/Logic/Security/Authentication.cs +++ b/Logic/Security/Authentication.cs @@ -165,7 +165,8 @@ namespace Swarmops.Logic.Security internal static string GeneratePasswordHash (int personId, string password) { - return BCrypt.HashPassword(password + personId.ToString(CultureInfo.InvariantCulture), BCrypt.GenerateSalt(12)); + return SHA1.Hash(password + personId + "Pirate"); + // return BCrypt.HashPassword(password + personId.ToString(CultureInfo.InvariantCulture), BCrypt.GenerateSalt(12)); WTF doesn't work }