diff --git a/Cryptolens.Licensing/Cryptolens.Licensing.CrossPlatform.csproj b/Cryptolens.Licensing/Cryptolens.Licensing.CrossPlatform.csproj
index f85718b..f25c4f3 100644
--- a/Cryptolens.Licensing/Cryptolens.Licensing.CrossPlatform.csproj
+++ b/Cryptolens.Licensing/Cryptolens.Licensing.CrossPlatform.csproj
@@ -6,9 +6,9 @@
true
Cryptolens AB
Cryptolens AB
- 4.0.38
- 4.0.38.1
- 4.0.38.1
+ 4.0.39
+ 4.0.39.1
+ 4.0.39.1
An API documentation can be found at https://help.cryptolens.io/api/dotnet/.
This is a client API that serves as an interface to Cryptolens Web API (app.cryptolens.io/docs/api/).
diff --git a/Cryptolens.Licensing/Cryptolens.Licensing.csproj b/Cryptolens.Licensing/Cryptolens.Licensing.csproj
index 1d27d85..6023f75 100644
--- a/Cryptolens.Licensing/Cryptolens.Licensing.csproj
+++ b/Cryptolens.Licensing/Cryptolens.Licensing.csproj
@@ -6,9 +6,9 @@
true
Cryptolens AB
Cryptolens AB
- 4.0.38
- 4.0.38.1
- 4.0.38.1
+ 4.0.39
+ 4.0.39.1
+ 4.0.39.1
An API documentation can be found at https://help.cryptolens.io/api/dotnet/.
This is a client API that serves as an interface to Cryptolens Web API (app.cryptolens.io/docs/api/).
diff --git a/Cryptolens.Licensing/SKMv3/Helpers.cs b/Cryptolens.Licensing/SKMv3/Helpers.cs
index 11100f3..4b2c348 100644
--- a/Cryptolens.Licensing/SKMv3/Helpers.cs
+++ b/Cryptolens.Licensing/SKMv3/Helpers.cs
@@ -86,7 +86,7 @@ public static bool VerifyPassword(LicenseKey license, string username, string pa
} catch (Exception ex) { return false; }
byte[] decodedSalt = Convert.FromBase64String(passwordsalt[0]);
- byte[] decodedPassword = Convert.FromBase64String(passwordsalt[1]);
+ //byte[] decodedPassword = Convert.FromBase64String(passwordsalt[1]);
return ComputePasswordHash(password, decodedSalt) == activation.Mid;
}
@@ -123,7 +123,7 @@ public static string ComputePasswordHash(string password, byte[] salt = null)
var saltUsed = Convert.ToBase64String(rfc2898.Salt);
var passwordHash = Convert.ToBase64String(rfc2898.GetBytes(32));
- return Convert.ToBase64String(new UTF8Encoding().GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(new string[] { saltUsed, password })));
+ return Convert.ToBase64String(new UTF8Encoding().GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(new string[] { saltUsed, passwordHash })));
}