Bootstrap FreeKB - RabbitMQ - Create an encrypted value using the rabbitmqctl encode command
RabbitMQ - Create an encrypted value using the rabbitmqctl encode command

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter ea8dd2 in the box below so that we can be sure you are a human.