Module Hub Beta

PASSWORD.HCHECK

key field password

Verifies the supplied password after encrypting it against the value stored in the field of the Hash key.

Return Value

Integer: 1 if the password matches, 0 otherwise.

Examples

redis> PASSWORD.HSET myuser password secret
OK
redis> PASSWORD.HCHECK myuser password secret
(integer) 1
redis> PASSWORD.HCHECK myuser password melon
(integer) 0

© 2017 Redis Labs, Inc. All rights reserved.