Command-line tool for generating recovery codes for Hikvision IP Cameras
Normally, to reset a hikvision camera you contact their support department to generate a recovery code. This package will allow you to generate the proper recovery code without contacting support. To do this you need the camera’s serial number and current time reported by the camera.
Installation
You can install via pip
`bash pip install hikvision-recover `
Usage
After installing via pip, the command line entry point hikvision-recover is available. The syntax for the command is
hikvision-recover serial year month day
e.g.:
hikvision-recover DS-ABC1234567-HIJKLMNOPQRS10987654321 2017 01 25
positional arguments:
serial: Camera Serial Number
year: 4 digit year of current camera time
month: 2 digit month of current camera time
day: 2 digit day of current camera time
- optional arguments:
- -h, --help
show help message and exit
via script
You can also use this package directly in a script instead of via the command line.
from hikvision_recover.recover import get_code
serial = "DS-ABC1234567-HIJKLMNOPQRS10987654321"
year = "2017"
month = "01"
day = "25"
recovery_code = get_code(serial, year, month, day)
print(recovery_code)
Metadata
Release files for hikvision-recover 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hikvision-recover-1.0.1.tar.gz | 2.3 kB | Details |
Release files / hikvision-recover-1.0.1.tar.gz
| Download URL | hikvision-recover-1.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
170bf5d2f0f0aa95a5ef4430d99fb56febb473abe6d73731e26c4a5ce99c59a6
|
|
BLAKE2b-256 checksum How to use checksums |
97920cdea5fc75c6c3c81a78a45d27b24c787762417aee7919883bfd27506701
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |