Module Hub Beta

PASSWORD.CHECK

key password

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

Return Value

Integer: 1 if the password matches, 0 otherwise.

Examples

redis> PASSWORD.SET mypassword secret
OK
redis> PASSWORD.CHECK mypassword secret
(integer) 1
redis> PASSWORD.CHECK mypassword melon
(integer) 0

© 2017 Redis Labs, Inc. All rights reserved.