I am working with RabbitMQ v3.12.0 which is running on Erlang v26.0.1. on a Windows 10 machine. The problem is that I am unable to successfully apply encrypted configuration entries. To simplify the matter, I am trying to use the RabbitMQ commands to encode and decode to demonstrate the system should accept the values. But I have been unable to get these commands to "agree", that is, the output is not expected.
Here are the commands:
rabbitmqctl encode "1234" "mySecretKey" --cipher aes_256_cbc --hash sha512 --iterations 1000
rabbitmqctl decode "OUTPUT FROM ENCODE COMMAND ABOVE ENTERED HERE" "mySecretKey" --cipher aes_256_cbc --hash sha512 --iterations 1000
where an example encoded output = "Bj/eZPwWS2wcmsXEJcueQvT0zkjccbcbLWGK21uQOqpplBpIEgJBIC0JX4DdhjZz"
The encoded output appears to be right (?), but the output from the decode is an error:
Decrypting value...
Error:
Failed to decrypt the value. Things to check: is the passphrase correct? Are the cipher and hash algorithms the same as those used for encryption?
It appears I meet all criteria, but the decode fails. I've tried using single quotes and no quotes against the two strings with no difference. And I have confirmed both the cipher and hash types are valid on this machine. I don't know what else to do?