RabbitMQ - Create an encrypted value using the rabbitmqctl encode command

by
Jeremy Canfield |
Updated: June 08 2021
| RabbitMQ articles
The rabbitmqctl command with the encode option can be used to create an encrypted value. In this example, the string "foo" is encoded, using 'bar' as the passphrase for the encoded string.
rabbitmqctl encode foo bar
Something like this should be returned.
Encrypting value ...
{encrypted,<<"T/pCGSrOlDkpnBvUA6mOPe2aTj8UMDZKtB9FIgm0r6ql8QgroXQkaEnejuRNrKms">>}
The --hash option can be used.
rabbitmqctl encode --hash sha512 foo bar
The --cipher option can be used.
rabbitmqctl encode --cipher aes_256_cbc foo bar
Did you find this article helpful?
If so, consider buying me a coffee over at