Fix Hikvision Invalid Encryption Key Error
In this article
If you're seeing an "invalid encryption key" error on your Hikvision camera or NVR, it usually means the password or encryption key you entered doesn't match what the device expects. This often happens after a firmware update, when using a third-party app, or when the device's password was changed. The fix is to reset the device's password or re-enter the correct key. Below are the exact steps to resolve it.
What You'll Need
- Your Hikvision device's serial number (found on the device label or in the web interface).
- Access to the email address associated with your Hikvision account (for password reset).
- A computer or mobile device with internet access.
- The SADP tool (free from Hikvision's official website) if you need to reset the device.
- A USB flash drive (only if you need to perform a factory reset via the device's physical button).
Step-by-Step
- Identify the error source. Check if the error appears in the Hikvision web browser interface, the iVMS-4200 client, the Hik-Connect app, or a third-party app (like ONVIF). The fix may differ slightly.
- Verify you're entering the correct password. For Hikvision devices, the default password is often the device's serial number (for older models) or a password you set during initial setup. If you changed the password, try that. If you're using a third-party app, ensure you're using the device's admin password, not your Hik-Connect account password.
- Use the correct encryption key for ONVIF. If you're connecting via ONVIF, the encryption key is usually the same as the device's admin password. Some third-party apps require you to enter the device's password in a specific field labeled "Encryption Key" or "Password." Double-check that you're not mixing up the Hik-Connect app password with the device's local password.
- Reset the device password via SADP. Download and install SADP from Hikvision's official website. Open SADP, and it will automatically scan your local network for Hikvision devices. Select your device from the list, click "Forgot Password," and follow the on-screen instructions. You'll need to provide the device's serial number and a security code sent to your registered email. After resetting, set a new password and try connecting again.
- Reset via the web interface. If you can access the device's web interface (usually by typing its IP address into a browser), go to Configuration > System > Security > Security Service. Look for a password reset option. If you're still logged in, you can change the password directly. If not, you'll need to use SADP or a physical reset.
- Perform a factory reset (if all else fails). Locate the reset button on your device (often a small pinhole on the back or bottom). Press and hold it for 10-15 seconds while the device is powered on. This will restore the device to factory defaults, including the password (which reverts to the default serial number or "admin" depending on the model). Note: This erases all your settings, including network configuration and recording schedules. You'll need to reconfigure the device from scratch.
- Re-enter the encryption key in third-party apps. If you're using an app like Blue Iris, Synology Surveillance Station, or a smart home hub, go to the camera settings and update the password field. Sometimes the app caches an old password, so delete the camera and re-add it with the correct credentials.
Common Mistakes
- Using the Hik-Connect cloud password instead of the device password. These are different. The device password is set locally and is what most apps need.
- Forgetting that the default password is the serial number. On older Hikvision devices, the default password is the serial number (e.g., DS-2CD2042WD-I, but the serial number is a longer alphanumeric string). Check the label on the device.
- Not checking for a firmware update. Some firmware versions changed the encryption method, causing old passwords to fail. Updating the firmware can resolve this, but you'll need to reset the password first.
- Using the wrong IP address or port. If you're connecting remotely, ensure port 8000 (for Hikvision) or the HTTP port (default 80) is forwarded correctly.
Tips
- Always write down your device password and store it in a password manager.
- Use a strong password with a mix of letters, numbers, and symbols, but avoid special characters that might cause issues in some apps.
- If you have multiple Hikvision devices, keep a record of each device's serial number and password in a secure location.
- After resetting the password, test the connection immediately using the Hik-Connect app or web interface to ensure it works.
- For ONVIF connections, some devices require the encryption key to be the same as the admin password, but others have a separate ONVIF user. Check the device's user management settings to create an ONVIF user with a known password.
Troubleshooting
If the error persists after trying the steps above:
- Restart the device. Power-cycle the camera or NVR by unplugging it for 30 seconds and plugging it back in. This can clear temporary glitches.
- Check for IP conflicts. Use SADP to see if the device's IP address is correct and not conflicting with another device on your network.
- Update the device firmware. If you can access the web interface, go to Configuration > System > Firmware Update and install the latest version. This may fix encryption-related bugs.
- Try a different browser. Hikvision's web interface sometimes has issues with newer browsers. Use Internet Explorer (in compatibility mode) or a dedicated browser plugin if needed.
- Check your antivirus/firewall. Some security software may block Hikvision's communication, causing authentication errors. Temporarily disable them to test.
- If you're using a third-party app, check for app updates. The app may not support the latest encryption standards. Update the app or contact the app's support.
Frequently Asked Questions
Why does my Hikvision camera say "invalid encryption key" after a firmware update?
Firmware updates can change the encryption algorithm, making old passwords incompatible. You'll need to reset the password using SADP or the web interface, then re-enter it in your apps.
Can I recover my Hikvision password without resetting the device?
If you have access to the registered email, you can use the "Forgot Password" option in SADP to receive a security code and set a new password without losing settings. If not, a factory reset is the only way.
Is the encryption key the same as the Wi-Fi password?
No. The encryption key refers to the device's admin password used for authentication. The Wi-Fi password is for network access and is separate.
Why does the Hik-Connect app work but my third-party app doesn't?
Hik-Connect uses the cloud account password, while third-party apps need the device's local password. Ensure you're entering the device password (the one you use to log into the web interface) in the third-party app.
What should I do if I forgot the email associated with my Hikvision account?
You'll need to contact Hikvision support with proof of purchase to recover the account. Alternatively, perform a factory reset to regain access to the device.
Can I use the same password for multiple Hikvision devices?
Yes, you can set the same password on multiple devices, but it's not recommended for security. If you do, ensure you update it on all devices if you change it.