Enforce FIPS Cryptography in Windows via Regedit
Enforcing Federal Information Processing Standards (FIPS) mode in
Windows ensures that the operating system and supported applications
strictly use FIPS 140-validated cryptographic algorithms for encryption,
hashing, and signing. This article provides a step-by-step guide on how
to configure the Windows Registry using the Registry Editor
(regedit) to enable FIPS compliance across your system.
The Registry Path and Value
To control the FIPS policy setting, modify the following registry location:
- Key Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy - Value Name:
Enabled - Value Type:
REG_DWORD - Value Data:
1= Enforce FIPS compliance (Enabled)0= Standard mode (Disabled)
Step-by-Step: Enabling FIPS via Registry Editor
- Open Registry Editor:
- Press
Windows Key + Rto open the Run dialog. - Type
regeditand pressEnter. - Click Yes if prompted by User Account Control (UAC).
- Press
- Navigate to the Target Key:
In the address bar or navigation tree on the left, navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicyNote: If the
FipsAlgorithmPolicykey does not exist underLsa, right-clickLsa, select New > Key, and name itFipsAlgorithmPolicy.
- Modify the
EnabledDWORD:- In the right-hand pane, locate the
Enabledvalue. - If
Enableddoes not exist, right-click an empty space in the right pane, select New > DWORD (32-bit) Value, and name itEnabled. - Double-click
Enabled. - Set the Base to Hexadecimal (or Decimal).
- Change the Value data to
1. - Click OK.
- In the right-hand pane, locate the
- Restart the System:
- Close the Registry Editor.
- Restart your computer to apply the cryptographic enforcement system-wide.
Enabling FIPS via Command Line (Alternative)
You can also apply this registry change directly via an elevated Command Prompt or PowerShell without manually browsing the registry tree:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy" /v "Enabled" /t REG_DWORD /d 1 /fAfter running the command, restart the system to activate the policy.