Skip to content

Commit

Permalink
Not using Environment.MachineName as a part of Captcha encryption key
Browse files Browse the repository at this point in the history
  • Loading branch information
napernik committed Mar 1, 2018
1 parent 7afa9a7 commit 47888e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Composite/Core/WebClient/Captcha/Encryption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Web.Hosting;
using Composite.Core.Configuration;
using Composite.Core.IO;


Expand All @@ -16,7 +16,7 @@ internal static class Encryption

static Encryption()
{
string key = Environment.MachineName + CaptchaConfiguration.Password + HostingEnvironment.ApplicationPhysicalPath;
string key = InstallationInformationFacade.InstallationId + CaptchaConfiguration.Password;

byte[] keyBytes = Encoding.UTF8.GetBytes(key);

Expand Down

0 comments on commit 47888e2

Please sign in to comment.