Skip to content

Commit

Permalink
EHD-1384: Minimise use of Obfuscator: Hard-code Obfuscation Seed (no …
Browse files Browse the repository at this point in the history
…need for it to be a secret any more)
  • Loading branch information
jamesgriff committed Oct 28, 2024
1 parent ccc066d commit 28d51a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion GenderPayGap.Core/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static class Global

public static string CompaniesHouseApiKey => Config.GetAppSetting("CompaniesHouseApiKey");
public static string GovUkNotifyApiKey => Config.GetAppSetting("GovUkNotifyApiKey");
public static int ObfuscationSeed => Config.GetAppSetting("ObfuscationSeed").ToInt32(127);
public static string DefaultEncryptionKey => Config.GetAppSetting("DefaultEncryptionKey");
public static string DataMigrationPassword => Config.GetAppSetting("DataMigrationPassword");
public static string BasicAuthUsername => Config.GetAppSetting("BasicAuthUsername");
Expand Down Expand Up @@ -131,6 +130,7 @@ public static bool EnableSubmitAlerts
{"X-AspNetMvc-Version", ""},
{"Server", ""}
};
public static int ObfuscationSeed => 1045659205;

#endregion

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"DefaultEncryptionKey": "", // some unit tests require this key to be empty
"ObfuscationSeed": 197, // some unit tests require this key to be 197
"OffsetCurrentDateTimeForSite": "917"
}

0 comments on commit 28d51a6

Please sign in to comment.