ENCRYPTION.VERIFY
ENCRYPTION.VERIFY file
- Group
- Encryption
- Complexity
- O(N) where N is the size of the file
- Arity
- 2 (exactly, counting the command name)
- Flags
- admin, slow
- HotKV Cloud
- Scale
- On-Premise
- requires the encryption-at-rest license feature
ENCRYPTION.VERIFY reads an encrypted file on the server, such as a
snapshot, and checks that it decrypts completely and that nothing in it was
changed or cut off. No plaintext is written anywhere. Use it to check a
backup before you rely on it.
The file is checked with the key in use now. After
ENCRYPTION.ROTATE, a snapshot written with
the old key verifies as 0.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| The file is intact | Integer 1 |
Integer 1 |
| Damaged, altered, not encrypted, written with another key, or not readable | Integer 0 |
Integer 0 |
Without a license that includes encryption-at-rest, the reply is
NOLICENSE encryption-at-rest requires a HotKV license. Contact sales@hotkv.com.
Examples
Section titled “Examples”127.0.0.1:6379> ENCRYPTION.VERIFY /var/lib/hotkv/dump.rdb(integer) 1127.0.0.1:6379> ENCRYPTION.VERIFY /var/lib/hotkv/dump-corrupted.rdb(integer) 0Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.