Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

ENCRYPTION.VERIFY

Last updated
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.

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.

127.0.0.1:6379> ENCRYPTION.VERIFY /var/lib/hotkv/dump.rdb
(integer) 1
127.0.0.1:6379> ENCRYPTION.VERIFY /var/lib/hotkv/dump-corrupted.rdb
(integer) 0

HotKV-only command.

ENCRYPTION.INFO, ENCRYPTION.ROTATE