diff --git a/Composite/Core/WebClient/Captcha/Encryption.cs b/Composite/Core/WebClient/Captcha/Encryption.cs index 74b7c37748..d725a15898 100644 --- a/Composite/Core/WebClient/Captcha/Encryption.cs +++ b/Composite/Core/WebClient/Captcha/Encryption.cs @@ -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; @@ -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);